I currently have a date in the format
20/10/2000 2:2:02
I need this date to be in “Linux Time” so that I can use it with other functions.
Unfortunately, I cannot change the format the date is saved as.
How can I convert this to Linux Time?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The PHP function “strtotime” takes a date in a string format (exactly what you have in the database) and converts it to epoch time (which you’ve referred to as linux time)
An example
Outputs
strtotime() uses american dates (MM/DD/YY) if you use /’s and English dates (DD/MM/YY) if you use dashes – so for you you’d need