|
-
Nov 16th, 2005, 10:40 AM
#1
Thread Starter
Fanatic Member
Format date!!
i'm confuse use the date format........anyone can help me?
let's say i want get 2day date in format (dd-mm-yyyy).............
Last edited by kenny_oh; Dec 2nd, 2005 at 07:28 PM.
-
Nov 16th, 2005, 11:11 AM
#2
Lively Member
Re: Format date!!
Try:
DATE_FORMAT(now(), '%d - %m - %Y')
All you have to do is put the date field you want to format in the first parameter
date time functions
-
Nov 18th, 2005, 08:51 AM
#3
Frenzied Member
Re: Format date!!
Yak, this is PHP 
Today's date:
date("d-m-Y");
By default date is now, otherwise, the syntax is :
date ( string format [, int timestamp] )
-
Nov 18th, 2005, 11:16 AM
#4
Lively Member
Re: Format date!!
 Originally Posted by kenny_oh
i'm confuse use the date format
Means mysql to me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|