Jump to content

[SOLVED] date conversion


rsammy

Recommended Posts

look into the function

string to date

http://www.google.com/search?hl=en&q=php+string+to+date+function&btnG=Google+Search

it is amazing what you can find with google isn't it ?

http://jp.php.net/manual/en/function.mktime.php

will help you maybe

http://jp.php.net/manual/en/function.strtotime.php

is what you are really looking for

so you search should have been string to time

 

or you could write a script that checks the characters on positions in your string

2/5/07

check if second character is a number or / and if it is a / you should put a 0 in front of the first character

and check again for the other possible positions of slashes in your string.

 

anatak

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.