|
Question : Using getdate() to provide only short date
|
|
Hello, how can I use the getdate() function to only provide a short date like 12/31/2007 on an update statement?
I was thinking something like this would work but it is not... update test set modifieddate = getdate(convert, 101)
|
|
Answer : Using getdate() to provide only short date
|
|
convert(varchar(10), getdate(), 101) will give you a date in short format
|
|
|
|