> I have a script where a user inputs a date in YYYYMMDD format, and I need
> to convert it to month day, year.  For example they will enter 20031209
> and I need the script to return the date as December 09, 2003.  They won't
> be entering today's date, so I can't use the timestamp with the date
> function.  So any ideas?

Use strtotime() to convert it to a Unix timestamp and then use date() to
format it.

---John Holmes...

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

Reply via email to