Just want to covert Jan to 01 (date format)
I can use array() but looking for another way…
Any suggestion?
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.
Just for fun I did this:
Bonus: it also supports full month names 😀
Or the new improved version that simply returns -1 – change it to throw the exception if you want (instead of returning -1):
Sry for all the edits – getting ahead of myself