<ADAM WILLIAMS snip>
Hi, is there a PHP function that will convert MM/DD/YYYY to YYYYMMDD? 

Also I will need to take into affect some people may put in M/D/YYYY
(some 
people may put in 1 instead of 01, 2 instead of 02, etc).  Is there a
way 
to do this?
</snip>
<MATT MATIJEVICH snip>
take a look at these functions

http://www.php.net/mktime 
http://www.php.net/strtotime 
http://www.php.net/date 
http://www.php.net/time 

they should put you on your way
</snip>
In addition to Matt's links I'd also suggest http://www.php.net/explode
This can be used to help re arrange the dates (MM/DD/YYYY to YYYYMMDD)
with some ease, just explode on the / and then concat the explode arrays
together in the order you want and save that to a variable. HTH!
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to