I want to get the format of a given date string.
Example: I have a string like 2011-09-27T07:04:21.97-05:00 and the date format of this string is
2011-09-27T07:04:21.97-05:00
You will need to take the inital date string and covert it to a date object and pass that converted date object and format it to your required string.