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.

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

How can I conver the date format in php, like from "12/31/05"(mm/dd/yy) to "31 December 2005"?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.