You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “SQL Cast Date”.
You are currently browsing comments. If you would like to return to the full story, you can read the full entry here: “SQL Cast Date”.

Derek Dieter
Site Author
how to insert current date in table. in sql server 2005
very nice
Tank’s
I have a problem
I have a datetime and i need the date to specific format
so I just casted datetime to time
SELECT CAST (GETDATE() AS DATE)
and for formatting i use convert
SELECT CONVERT(DATE,CAST (GETDATE() AS DATE),105)
but, the result of both is same,
convert is not working formating
Exactly what I was looking for, thanks!
Thanks you. This is most helpful.
Thanks, perfect exactly what I need to Know
thanks for the effort