Re: how to control if it is a date

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I try to use drop-down menus whenever possible for things like this;  one each for days months years

Then all one needs to do is check for valid dates with checkdate()

Alain Roger wrote:
Hi,

user can enter a string with following format dd.mm.yyyy.
Application should transform it to postgresql timestamp date.

however, i would like to be sure that what user typed is a real and valid
date.
how can i do that ?

i was thinking to use date(string format,
strtotime(string_entered_by_user)); but it does not ensure me that it is a
valid date...

thx.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux