Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

DATE MANIPULATION

Post Reply
at_rcc
Posts: 32
Joined: Thu Sep 02, 2010 11:19 am

DATE MANIPULATION

Unread post by at_rcc »

Hi in my customer table ,i have added a field called DATE_CREATED which is of type time_stamp and eventually stores all the details the account was created.

my problem is that i want to extract the date part so that queries can be made such as when did a client registered for my report ! any one an idea? tried the mysql php manual on date still stuck thanks!
steven
Posts: 369
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 52 times
Been thanked: 52 times

Re: DATE MANIPULATION

Unread post by steven »

at_rcc,

Is this what you're looking for?

SELECT DATE_FORMAT( '2009-10-04 22:23:00', '%Y-%m-%d' )

Steven
A short post is a good post.
Post Reply