Hi
I have a javascript calendar that populates a form field (survey) in the format of dd/mm/yyyy. I don't know of a method to change the format in the calendar.
So, I would like the format to be changed at the point the form is submitted and the date is used to update a record.
I have tried to amend the portion of the update script for the survey field to change the format as part of it submitting the change. I used this line:
GetSQLValueString(date("Y-m-d, strtotime("$_POST['survey']), "text")
but I'm not getting the expected results, essentially from the text field entry format of dd/mm/yyyy I want Y-m-d
Is this possible?
Thanks in advance.