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
Can a rule be bound to any column of any data type?
how to take backup bcp out for a column in table in sql server?
What is dimension table? : sql server analysis services, ssas
Do you know how to send email from database?
What is view in sql?
Which is better statement or preparedstatement?
What is database black box testing?
Explain where clause?
Why use “pivot” in sql server?
What are clustered and non-clustered index?
Tell me what is difference between clustered and non clustered index?
Is null vs coalesce?
How to change the ownership of a schema in ms sql server?
Can we call stored procedure in trigger?
How to list all schemas in a database?