Converting MM/DD/YY date to DD/MM/YYYY in EE
Posted: Fri May 12, 2006 10:43 am
Hi All,
I am trying to convert a character date, format:
MM/DD/YY
to a character date, format:
DD/MM/YYYY
In Server Edition, this was easily taken care of using oconv, but now tht we are moving onto EE, I am having difficulty. I tried the following:
DateToString(StringToDate(Trim(lkDatesStripped.DataOut), "%mm/%dd/%yy"), "%dd/%mm/%yyyy")
This however took input 05/11/06 and converted to 11/05/1906!
Any suggestions gratefully received.
Regards
StuM
I am trying to convert a character date, format:
MM/DD/YY
to a character date, format:
DD/MM/YYYY
In Server Edition, this was easily taken care of using oconv, but now tht we are moving onto EE, I am having difficulty. I tried the following:
DateToString(StringToDate(Trim(lkDatesStripped.DataOut), "%mm/%dd/%yy"), "%dd/%mm/%yyyy")
This however took input 05/11/06 and converted to 11/05/1906!
Any suggestions gratefully received.
Regards
StuM