RE: [PHP] Check if var has a date (timestamp or regular)
| From: | Bastien Koert | Date: | Wed, 08 Aug 2007 15:11:37 +0000 |
| Subject: | RE: [PHP] Check if var has a date (timestamp or regular) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-260441@lists.php.net to get a copy of this message | ||
Other options include
using a date calendar widget (js) to fill the field
splitting the date field into three separate selects and building the date on the server from those
three elements
Bastien> From: snsanju@gmail.com> To: oozypal@gmail.com; php-general@lists.php.net> Date:
Bastien> Wed, 8 Aug 2007 16:50:39 +0530> Subject: RE: [PHP] Check if var has a date (timestamp or
Bastien> regular)> > Hi,> > You need to check with your submitted data as in which format it is.
Bastien> Try> with different combination for splitting the string (include -, / while> splitting
Bastien> string). If input string works with split then assume input string> as in above format. Otherwise
Bastien> simple, consider it as in timestamp.> > But I suggest if some user is entering the date then
Bastien> let them insert the> date as you want. Just mention (mm/dd/yyyy) after the text field and it
Bastien> will> solve your problem> > Warm Regards,> Sanjeev>
Bastien> http://www.sanchanworld.com/>
Bastien> http://webdirectory.sanchanworld.com> -----Original
Bastien> Message-----> From: OOzy Pal [mailto:oozypal@gmail.com] > Sent: Monday, August 06, 2007 5:22
Bastien> PM> To: PHP> Subject: [PHP] Check if var has a date (timestamp or regular)> > How can I
Bastien> check an inputed date if it is a valid date and if it is in> the form of a timestamp or regular
Bastien> date such as (22-07-2007 or> 22/07/2007)> > -- > OOzy> Ubuntu-Feisty> > -- >
Bastien> PHP General Mailing List (http://www.php.net/)> To unsubscribe, visit:
Bastien> http://www.php.net/unsub.php> > -- > PHP General Mailing
Bastien> List (http://www.php..net/)> To unsubscribe, visit: ˵¾,fðˆq
Bastien> >1÷gßbhttp://www.php.net/unsub.php>
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us