visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: MySql :: date format issues


By: phpsnook India  Date: 23/10/2008 08:54:49  English  Points: 20 Status: Answered
Quality : Excellent
hai

i wud like to know if it possible to specify the date format to be followed when creating the database itself i want it to be in hte UK format '%e/%c/%Y'
By: VGR Date: 23/10/2008 18:37:12 English  Type : Answer
no, but you can query the data(or datetime) value using date_format() to have the proper output. It's the same behaviour as in Oracle. The DATE formats are stored in an internal representation that can't be changed. You've to use the ISO 8601 format, eg YYYY-MM-DD HH:MM:SS [:MS in some implementations]. Moreover, it's the perfect date format to perform chronological sorts 8-))

you may read this link
By: OpConsole Date: 03/04/2011 19:06:59 English  Type : Comment
force close

Do register to be able to answer

EContact
browser fav
page generated in 93.628880 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page