jennypretty
IS-IT--Management
Hello friends,
I am trying to format the date return and it generate this error: DateTimeFormat is not a recognized funtion name.
Select Cast(FormatDateTime(hiredate,2) as varchar(50)
from emp
The date format return I want is like this: Jan 11 2002.
I also tried this, Cast(FormatDateTime(hiredate,"mmm dd yyyy") as varchar(50)
Please help.
Thanks,
Jenny.
I am trying to format the date return and it generate this error: DateTimeFormat is not a recognized funtion name.
Select Cast(FormatDateTime(hiredate,2) as varchar(50)
from emp
The date format return I want is like this: Jan 11 2002.
I also tried this, Cast(FormatDateTime(hiredate,"mmm dd yyyy") as varchar(50)
Please help.
Thanks,
Jenny.