Hi,
In my application in a @Schedule.begins_at object I have this value
“Fri Feb 01 03:30:00 +0530 2008”
In my view file i need this to be displayed as 3:30 AM
But in my Schedules table begins_at field is datetime…
While creating i did like
@schedule.begins_at = DateTime.Parse(@schedule.begins_at)
During Edit i need the reverse of this i need “3:30 AM” form this time
value “Fri Feb 01 03:30:00 +0530 2008”
How to convert this…
Thanks in advance…
Ratnavel