Adrian Trantino
Member
Hi Guys,
I currently have data stored in a MySQL table as '2018-07-31 00:00:00', however, my DatePicker populates a variable as '31-07-2018' and fails to pull data through.
When is the best time to convert the date and how?
On DatePicker_ValueChanged or inside the SQL when I look up the date field in the MySQL table?
Basically, when they click the DatePicker I want to store that date in a variable as 'yyyy-mm-dd' rather than 'dd/mm/yyyy'.
I currently have data stored in a MySQL table as '2018-07-31 00:00:00', however, my DatePicker populates a variable as '31-07-2018' and fails to pull data through.
When is the best time to convert the date and how?
On DatePicker_ValueChanged or inside the SQL when I look up the date field in the MySQL table?
Basically, when they click the DatePicker I want to store that date in a variable as 'yyyy-mm-dd' rather than 'dd/mm/yyyy'.