Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mysql Date Format

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can MYsql Date format be changed to

some other than yyyy-mm-dd like dd-mm-yyyy

i know that in oracle8i it is possible

advance thanks

regards
amir
 
Shilpa Tendulkar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Amirtharaj Chinnaraj:
can MYsql Date format be changed to

some other than yyyy-mm-dd like dd-mm-yyyy

i know that in oracle8i it is possible

advance thanks

regards
amir


Yes you can. Use mysql's DATE_FORMAT(date,format) function
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic