Given i have a table in which a certain field has a text data type, lets say FieldValue coulmn given text as data type. I am saving a date object from java using the full format and saving this in the column like this:
Wed Jul 25 00:00:00 CST 2012
Now i want to make this a date type in my mysql query using str_to_date() function so that i can make a date to date comparison in my query.
Is this possible given the scenario above ?
try this, is working:
You can store result of above query in
TIMESTAMPfield in MySQL and do further operation on time and dates.