How can u convert the Date to String?
Answer Posted / rajesh ranjan
select cast(getdate() as varchar)
select convert(varchar,getdate(),101)-mm/dd/yyyy
select convert(varchar,getdate(),102)-yy.mm.dd
select convert(varchar,getdate(),106)-ddmmyy
select convert(varchar,getdate(),108)-hh:mm:ss
etc.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
You want to check the syntax of a complicated update sql statement without executing it. What command should you use?
What is check constraint in sql server?
What is filestream?
How to receive returning result from a query?
How to enter date and time literals in ms sql server?
What do you mean by a Composite primary key?
How do I find the sql server instance name?
What are date and time data types in ms sql server?
Explain cdc and sql injection?
How to end a stored procedure properly in ms sql server?
How to rebuild master databse?
Explain about local stored procedure?
Define Wed Edition in SQL Azure?
What is the order in which the sql query is executed?
What is the bookmark lookup and rid lookup?