Converting a File Date to a recognised ColdFusion format
I need to be able to allow a user to enter a date into a form, and on processing the form I need to open a file which has a last modified date which is the same as "form.MyDate". I have tried using CFDirectory and reading Name.DateLastModified, but I get the following error:
The value "Wednesday, 4 January 2006 12:42:48 PM NZDT" could not be converted to a date. Is there an easy way of converting that value into a dd/mm/yyyy value?