Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 date conersion

Author  Topic 

niranjankumark
Posting Yak Master

164 Posts

Posted - 2008-12-09 : 05:08:21
column datatype is varchar to store date data .. it stores as
jun 01 2008 ...this need to be convert to date like 06/01/2008
is it possible ...

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-12-09 : 06:20:12
Yes.
See CONVERT function in Books Online.


E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-09 : 10:53:26
if this is for display purpose consider doing this at front end strongly.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-12-10 : 08:14:37
Always use proper DATETIME datatype to store dates and let front end do the formation


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -