I have a column mysql datetime
that is in DATETIME format.
Is there a way to SELECT
this column in epoch seconds? If not, what would be the best way of converting the datetime format to epoch seconds? What type of field would be the best to capture this?
Use MySQL's UNIX_TIMESTAMP
function
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With