Re: [PHP] how to control if it is a date

2007-03-24 Thread Alain Roger
thanks i did not know it. On 3/24/07, Brice <[EMAIL PROTECTED]> wrote: On 3/24/07, Alain Roger <[EMAIL PROTECTED]> wrote: > > Hi, > > user can enter a string with following format dd.mm.. > Application should transform it to postgresql timestamp date. > > however, i would like to be sure

Re: [PHP] how to control if it is a date

2007-03-24 Thread Brice
On 3/24/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, user can enter a string with following format dd.mm.. 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 ? With checkdate i

[PHP] how to control if it is a date

2007-03-24 Thread Alain Roger
Hi, user can enter a string with following format dd.mm.. 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_u