How can u convert the Date to String?
Answer Posted / samba shiva reddy . m
SELECT
GETDATE() AS UnconvertedDateTime,
CAST(GETDATE() AS nvarchar(30)) AS UsingCast,
CONVERT(nvarchar(30), GETDATE(), 126) AS UsingConvertTo_ISO8601 ;
GO
this will work for u try it out.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain a checkpoint?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
You want to implement the one-to-one relationship while designing tables. How would you do it?
What is server-level principal?
Write query to return all rows sql?
How to transfer an existing table from one schema to another schema in ms sql server?
Explain system views?
What is a database in ms sql server?
What Are the Main Features of SQL Azure?
What is the purpose of the master database?
What is a fan-out query in SQL Azure?
What is mean by clustered index and non clustered index, give syntax of creation? : sql server database administration
Can you get second highest salary from the table?
Explain the different types of backups available in sql server? : sql server database administration
Which is better statement or preparedstatement?