Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date formate

in my script Date are given in text formate(eg- 01-Jul-2011) then how can i change date in number format(01-07-2011)...

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

     Date(Date#(DateField,'DD-MMM-YYYY'),'DD-MM-YYYY')

Celambarasan

View solution in original post

10 Replies
rajni_batra
Specialist
Specialist

Try

date(currentdatefield,'DD-MM-YYYY')  as Newdate

Not applicable
Author

thanks for the reply but this is not working...

rajni_batra
Specialist
Specialist

Can u forward any sample for this?

rajni_batra
Specialist
Specialist

there can b some problem with time function attached with Date

try to link with the num(datefield) in fact and calender

Not applicable
Author

I am providing the tex file which containing the data....

SunilChauhan
Champion
Champion


makedate(right('01-Jul-2011',4),Mid('01-Jul-2011',4,3),left('01-Jul-2011',2))

or for a field

makedate(right(Datefield,4),Mid(Datefield,4,3),left(Datefield,2))


Sunil Chauhan
Not applicable
Author

I am also giving u qvw file

SunilChauhan
Champion
Champion

i thing duedate and date are one and same

you can use this

=makedate(right(Date,4),Mid(Date,4,2),left(Date,2))

hope this helps

Sunil Chauhan
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Check with this

     Date(Date#(DateField,'DD-MMM-YYYY'),'DD-MM-YYYY')

Celambarasan