Connecting Tech Pros Worldwide Forums | Help | Site Map

abt date

Newbie
 
Join Date: Jul 2007
Posts: 1
#1: Jul 26 '07
how to split date in sql.???
and use the split function

dafodil's Avatar
Needs Regular Fix
 
Join Date: Jul 2007
Location: Philippines
Posts: 393
#2: Jul 26 '07

re: abt date


Quote:

Originally Posted by kracker1407

how to split date in sql.???
and use the split function

Its easier to split the date using a development language.

You can easily retrieve the date (if the date is stored in the database) and store it in a variable then you can use the string functions of that development language to split it.
mwasif's Avatar
Moderator
 
Join Date: Jul 2006
Location: Pakistan
Posts: 719
#3: Jul 26 '07

re: abt date


You can use DATE_FORMAT() to get the required part of the date.
Reply