SyntaxFix
Write A Post
Hire A Developer
Questions
You can mysql's UNIX_TIMESTAMP function directly from your query, here is an example:
UNIX_TIMESTAMP
SELECT UNIX_TIMESTAMP('2007-11-30 10:30:19');
Similarly, you can pass in the date/datetime field:
SELECT UNIX_TIMESTAMP(yourField);