I am trying to convert a date that is in a string format to a date format.
The field I am pulling is in the format:
16-01-2010 00:00:00
I want it to be displayed in a date format so that I can do a count on the number of days between two dates. The format I would like it to display in is:
with the last MMs in capitals, otherwise you might get the minutes instead, which would be all zeros since you don’t have a time in your database value.
Throws me every time. I never get a date conversion right first time!