Please look at the format of these date time values:
var from = "2012-01-13 T11:00:00";
var to = "13 Jan 2012 11:00am";
In the above example, how to write a javascript function which converts a value in "from" format to a value in "to" format, both are datetime values in text obvioulsy.
var to = convertDateTime(from);
function convertDateTime(from)
{
// how to implement this?
}
Many thanks,