Databases :: MySql :: date format issues |
|||
| By: phpsnook |
Date: 23/10/2008 08:54:49 |
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 | 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 | Type : Comment |
|
| force close | |||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








