I have a field, 'mydate' in my database which displays the date as a string like this
'8/1/2015 12:35:22 PM'
I am trying to convert this into a unix timestamp i have tried
cast(UNIX_TIMESTAMP('mydate',"yyyy-MM-dd HH:mm:ss.SSSS")) AS new_date
This has resulted in the query not completing completely. How can i convert this 'mydate' field into a unix timestamp.