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
How to get the number of affected rows?
How many triggers you can have on a table?
What is the difference between a clustered index and a non-clustered index?
What is the use of toad or sqldbx.?
why would you call update statistics? : Sql server database administration
Is t sql the same as sql server?
How to check status of stored procedure in sql server?
What is the cpu pressure?
What is a trace frag? Where do we use it?
What is use of @@ spid in sql server?
Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?
What is the use of =,==,=== operators?
What do we need queues in sql service broker?
what is the Ticketing tool used in Wipro technologies at Bangalore...???
If we delete pack Spec what will be the status of pack Body ?