I am new to sql server 2005
I want to use format function in sql query
Format(dtfld,'dd-mmm-yyyy').
How to use it ?

Also for numbers, format(no1,"0.00")
|
Newbie Member
|
|
| 5Jul2009,15:09 | #1 |
|
Hi All!
I am new to sql server 2005 I want to use format function in sql query Format(dtfld,'dd-mmm-yyyy'). How to use it ? ![]() Also for numbers, format(no1,"0.00")
|
|
Go4Expert Founder
|
![]() |
| 5Jul2009,15:31 | #2 |
|
What is your input format and what you would like the output to be formatted.
|
|
Newbie Member
|
|
| 6Jul2009,09:50 | #3 |
|
My database contains dt as "datetime" type.
I want it in format as dd-mmm-yyyy |
|
Banned
|
|
| 6Jul2009,09:52 | #4 |
|
MS SQL Server 2005 provides CONVERT function to change or convert the DateTime formats.
CONVERT Function syntax: Convert (datatype, datetime string, date style) |