I am using bootstrap datetimepicker and using format as YYYY-MM-DDTHH:mm:ssZ the text input I am storing as it is in database column.
I have to store it as string only. While fetching records I am passing fromdate and toDate which are for applications timezone (other than client machine). We set timezone through application as well.
For MySQL query I am doing date comparison using:
str_to_date(column_name,'%Y-%m-%dT%T')
This gives an issue in fetching records. Any suggestions?
My problem is when I am not sure whether I am right about datetimepicker format.