How to manipulate PHP date?

Reply

Join Date: Jun 2005
Posts: 92
Reputation: michael123 is an unknown quantity at this point 
Solved Threads: 0
michael123 michael123 is offline Offline
Junior Poster in Training

How to manipulate PHP date?

 
0
  #1
Jul 12th, 2005
I have a textbox where user can enter the date in format of MM/DD/YY, now I want to set a rule only accept the date within one month from current date, how can I do that, anyone help will be appreciated.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 138
Reputation: sarahk is an unknown quantity at this point 
Solved Threads: 1
sarahk's Avatar
sarahk sarahk is offline Offline
Junior Poster

Re: How to manipulate PHP date?

 
0
  #2
Jul 13th, 2005
the date that you receive is a string so with substr you can break it down to it's parts. or explode...

then have a look at http://www.php.net/date where there are some good date manipulation scripts.

Sarah
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 92
Reputation: michael123 is an unknown quantity at this point 
Solved Threads: 0
michael123 michael123 is offline Offline
Junior Poster in Training

Re: How to manipulate PHP date?

 
0
  #3
Jul 14th, 2005
How can I conver the date format in php, like from "12/31/05"(mm/dd/yy) to "31 December 2005"?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC