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
Write down the syntax and an example for create, rename and delete index?
What is unique key constraint?
What is data source view or dsv? : sql server analysis services, ssas
Explain where clause?
What is the difference between a primary key and a unique key? Are they the same?
What is dbcc updateusage?
What is an index in sql?
How to create a scrollable cursor with the scroll option?
Should you normalize audio?
How to create a view with data from multiple tables?
What are different types of table joins?
Why use triggers?
What is replication with database mirroring? : sql server database administration
What are the dmvs?
Please differentiate between a local and a global temporary table?