Data conversion
Posted: Tue Feb 12, 2008 11:04 pm
Hi,
I am trying to convert a character date, format:
MM/DD/YY
to a 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 02/11/07 and converted to 11/02/1907!
Any suggestions please.
Thanks
I am trying to convert a character date, format:
MM/DD/YY
to a 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 02/11/07 and converted to 11/02/1907!
Any suggestions please.
Thanks