I am getting like 2000-02-12Z
I need 02-12-2000
Discussion posts and replies are publicly visible
It's worth noting what the 'Z' actually represents:
The ISO 8601 standard defines formats for representing date-time values as text. The T is just a marker for where the time part begins. The Z is an abbreviation of +00:00 , meaning UTC (an offset of zero hour-minutes-seconds).
This may be more pertinent for datetimes where the time being returned from your database might not be the local time you think it should be.
valuable comment :)
Thanks for your reply.