Forum Moderators: coopster

Message Too Old, No Replies

Help with date / time

         

adammc

10:55 pm on May 17, 2006 (gmt 0)

10+ Year Member



Hi Folks,

I was hoping for a bit of help on how to extract date / time from my MYSQL database into the correct time format.

I am using this code to insert into a datetime table:

[PHP]<?php echo date("Y/m/d @ H:i:s");?>[/PHP]

I would like to echo it onto my page putting converting it to Australian Date / Time (+10 hours - 25-12-2006 10.30pm)

Any help would be greatly appreciated :)

jatar_k

11:06 pm on May 17, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



you could use one of the Date and Time Functions [php.net] to add the 10 hours to the server date/time

adammc

1:20 am on May 18, 2006 (gmt 0)

10+ Year Member



thanks, got it sorted ;)