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 the use of keyword with encryption. Create a store procedure with encryption?
What language is sql server written in?
what are user defined datatypes? : Sql server database administration
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What are sparse columns?
How do you delete duplicate records in sql server?
What is lock escalation? : sql server database administration
Explain primary key?
How to divide query output into multiple groups with the group by clause in ms sql server?
How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?
What is the maximum number of index per table?
Explain Geometry datatype in sql server 2008 with example
How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?
Do you know what are the differences between lost updates and uncommitted dependencies?
what is an extended stored procedure? Can you instantiate a com object by using t-sql? : Sql server database administration