Can any one please let me know, i need to change the data format 2010-05-14 17:53
to 14/05/2010 17:53
using mysql select query
views:
41answers:
6
+1
A:
check this link will help you : http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_get-format
Pranay Rana
2010-05-19 07:43:03
+1
A:
Maybe this link might help you MySQL Manuel
This should do the trick :
Select DATE_FORMAT(now(),'%d/%m/%Y %H:%i');
For hour, u can use %H or %h, depending if you want 24h or 12h display. %H will set 24h, %h will set 12h.
djerry
2010-05-19 07:44:08
+1
A:
Use DATE_FORMAT
to format your DATE. To solve your conversion, use the following code as a pointer
SELECT DATE_FORMAT('2010-05-14 17:53', '%d/%m/%Y %H:%i');
Snehal
2010-05-19 07:52:25
A:
use the date_format function. This website will help you http://www.mysqlformatdate.com
gerard
2010-05-19 17:58:22
A:
try this select..
SELECT DATE_FORMAT(datefield, "%d/%m/%Y %H:%i") FROM <TableName> WHERE <clause>
VAC-Prabhu
2010-05-21 11:58:57
thanks for this query..
Chakrapani
2010-05-21 14:23:23