Re: [PHP-WIN] date format, php, mysql

2002-11-07 Thread Radovan Radic
or if you want to us 12hour clock try this: $todaydatetime = date("Y m d g:i"); That will translate into: 2002 11 07 6:12 [snip] It is ok, but is there some way i do $mydate=format_date($date,Y m d :i") - is there some function that could do it, where $date is some date, not neccessarily tod

RE: [PHP-WIN] date format, php, mysql

2002-11-07 Thread James Meers
Hi, You can use something like this: $todaydatetime = date("Y m d G:i"); That will translate into: 2002 11 07 18:12 or if you want to us 12hour clock try this: $todaydatetime = date("Y m d g:i"); That will translate into: 2002 11 07 6:12 (changed G (hour, 24-hour format without leading zer

Re: [PHP-WIN] date format, php, mysql

2002-11-07 Thread Maxim Maletsky
look at the function called strtotime() uk.php.net/strtotime it will convert English language date into timestamp, from which you can do date() again to reformat it -- Maxim Maletsky [EMAIL PROTECTED] "Adrian Partenie" <[EMAIL PROTECTED]> wrote... : > Hello, > > How can I modify a date fo