View Single Post

   
  #2 (permalink)  
Old 02-29-2008, 06:42 PM
Jens
 
Posts: n/a
Default Re: convert a datatype

No problem, look at the CONVERT function for a specific format you want
to extract. I prefer using the ISO one, though its good for ordering
and international.

CONVERT(VARCHAR(10),GETDATE(),112)

HTH, jens Suessmeyer.

---
http://www.sqlserver2005.de
---

Reply With Quote