datetime to string in SQL Server

Source: Internet
Author: User
Tags getdate

Select CONVERT (varchar), GETDATE (), 8): 14:53:14select CONVERT (varchar), GETDATE (), 9): 6 at 2:53:27:953pmse Lect CONVERT (varchar), GETDATE (), 06-06-12 select CONVERT (varchar), GETDATE (), one): 12/06/06 select CONVERT ( varchar (+), GETDATE (), 120606Select CONVERT (varchar), GETDATE (): 14:55:23:893 Select CONVERT (v Archar (+), GETDATE (), (+): 14:55:35:240select convert (varchar), GETDATE (), 2012-06-06 14:55:57 Select CONVERT (varchar), GETDATE (), +): 2012-06-06 14:56:09.170select CONVERT (varchar), GETDATE (), (+): 06/06/12 2:56:21 Pmse Lect CONVERT (varchar), GETDATE (), max): 2012-06-06 select CONVERT (varchar), GETDATE (): 14:57:01 Select CONV ERT (varchar), GETDATE (), (+): 2012-06-06 14:57:11.837 Select CONVERT (varchar), GETDATE (), 6): 2:57p M Select CONVERT (varchar), GETDATE (), 101): 06/06/2012 Select convert (varchar), GETDATE (), 102): 2012.06.06 S Elect CONVERT (varchar (100), GETDATE (), 103): 06/06/2012 Select CONVERT (varchar (+), GETDATE (), 104): 06.06.2012 select CONVERT (varchar), GETDA  TE (), 06-06-2012 select CONVERT (varchar), GETDATE (), 106): (+), select CONVERT (varchar), GETDATE (), 107): 109 Select CONVERT (varchar (+), GETDATE (), 108): 14:58:28 Select convert (varchar), GETDATE (),): 0  6 6 2:58:34:133pm Select CONVERT (varchar (+), GETDATE (), +): 06-06-2012 select CONVERT (varchar), GETDATE (),  111): 2012/06/06 select CONVERT (varchar), GETDATE (), GETDATE): 20120606 select CONVERT (varchar), (), 113): 06 14:58:58:960select CONVERT (varchar), GETDATE (), 14:59:08:527 Select convert (varchar), GETDATE (), 1 : 2012-06-06 14:59:14 Select CONVERT (varchar), GETDATE (), 121): 2012-06-06 14:59:21.277 Select CONVERT (varchar (1 XX), GETDATE (), 126): 2012-06-06t14:59:28.190 Select CONVERT (varchar), GETDATE (), ():??? 1433 2:59:36:540pm Select CONVERT (varchar (100), GETDATE (), 131): 17/07/1433 3:00:00:090pm 

Original: http://www.cnblogs.com/wangyuelang0526/archive/2012/06/06/2538224.html

datetime to string in SQL Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.