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