I have a date string what I would like to convert in digits. The string looks like
Dienstag, 30. Oktober 2012
and the code what I’ve been trying to use
date('Y.m.d' , strtotime($str[4]));
returns every time 1970.01.01
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.
You can make this by changing the current locale set http://php.net/manual/bg/function.setlocale.php
If you know the source date format you can also stick to using https://www.php.net/date_create_from_format
Here is more details regarding the same question strtotime With Different Languages?