Forum Moderators: coopster
How do I get it out with PHP to look nice and neat in format such as: DD, MM, YYYY. hh:mm:ss
I tried with a select date_format function but it didn`t work out and I really don`t wanna crack my head with this, so if anyone out there knows this I`d be thankful!
Writing 09/01/2004 means September 1st in the US and Candada, but means 9th January to Europeans and many others; whereas 2004-09-01 always means 2004 September 01 everywhere on the planet.
You will see a large number of websites already use the latter format for that very reason.
[edited by: g1smd at 7:51 am (utc) on Aug. 28, 2004]
Why not leave it as 2004-08-28 as that is easy to read? That is an international standard (ISO 8601) adopted in all Western and many other countries, and an Internet Standard (RFC 3339).
Writing 09/01/2004 means September 1st in the US and Candada, but means 9th January to Europeans and many others; whereas 2004-09-01 always means 2004 September 01 everywhere on the planet.You will see a large number of websites already use the latter format for that very reason.
Hmmm, maybe you`re right but I`m from Croatia and this generally goes dd-mm-yyyy here.
The guy who wrote the code (dreamcatcher) used mysql_fetch_object function! Can date_format be used with mysql_fetch_array or ...fetch_row for instance.
I tried with those and could`t get it to work!
What I wanna do is to get the date and time with some other info from the database with the same query.
Can it be done and how?
Tip Of The Day: Use international date format
which linked to: [w3.org...]
I just ran some pages through the HTML validator at [validator.w3.org...] and guess what the tip of the day was:
Tip Of The Day: Use international date formatwhich linked to: [w3.org...]
Hahahaha :) I`ll check it out!