Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Can a rule be bound to any column of any data type?

963


how to take backup bcp out for a column in table in sql server?

2105


What is dimension table? : sql server analysis services, ssas

1020


Do you know how to send email from database?

1005


What is view in sql?

906


Which is better statement or preparedstatement?

929


What is database black box testing?

1034


Explain where clause?

989


Why use “pivot” in sql server?

1119


What are clustered and non-clustered index?

1009


Tell me what is difference between clustered and non clustered index?

944


Is null vs coalesce?

885


How to change the ownership of a schema in ms sql server?

1194


Can we call stored procedure in trigger?

950


How to list all schemas in a database?

1061