Re: date convertion

From: Date: Tue, 09 Dec 2003 15:25:01 +0000
Subject: Re: date convertion
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-172269@lists.php.net to get a copy of this message
> 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...

« previous php.general (#172269) next »