Re: Date format question

From: Date: Tue, 16 Oct 2001 22:37:33 +0000
Subject: Re: Date format question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71270@lists.php.net to get a copy of this message
strtotime('+2 weeks', $time); http://www.php.net/manual/en/function.strtotime.php ----- Original Message ----- From: "Don" <don@lclcan.com> To: "php list" <php-general@lists.php.net> Sent: Monday, October 15, 2001 8:32 PM Subject: [PHP] Date format question Hi, I have a date string in the following format: yyyymmdd. So today's date would show as 20011015 What I want to do is add 14 days to the date (month and year changes are verified) and produce output that looks like, mmm-dd-yyyy as in: Oct-29-2001 (I know I can use the "date()" function to accomplish the latter. Does anyone have a function that does the above? Thanks, Don

« previous php.general (#71270) next »