I have the text string as below:
04/02/08
It is text. Format is mm/dd/yy
But it is still can be recognized as yy/mm/dd or dd/mm/yy.
How to convert to the ISO date format?
I use PHP to do it.

date(‘Y-m-d’,strtotime(’04/02/08′))

It will convert the text to date and format it in ISO date.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *