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
What is full outer join in sql server joins?
What is ssrs?
How to rename databases in ms sql server?
Which Model uses the SET concept
How to truncate the log in sql server 2012? : sql server database administration
Is it possible to replicate data from sql server to oracle? : sql server replication
Can we shrink data file in sql server?
How can I check that whether automatic statistic update is enabled or not?
what are defaults? : Sql server database administration
What is field with example?
What do you understand by coalesce in sql server?
What is dynamic cursor in SQL SERVER?
What are the steps to follow to configure SQL*Net?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
What is buffer cash in sql server?