datetime to string in SQL Server

Source: Internet
Author: User

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): 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 PMSelect CONVERT (varchar), GETDATE (), max): 2012-06-06 Select CONVERT (varchar), GETDATE (): 14:57:01Select CONVERT (varchar), GETDATE (), 2012-06-06 14:57:11.837 Select convert (varchar), GETDATE (), 100): 06 6 2:57pmSelect CONVERT (varchar), GETDATE (), 101): 06/06/2012 Select CONVERT (varchar), GETDATE (), 102): 2012.06.06Select CONVERT (varchar), GETDATE (), 103): 06/06/2012 select CONVERT (varchar), GETDATE (), 104): 06.06.2012 Select CONVERT (varchar), GETDATE (), max): 06-06-2012 select CONVERT (varchar), GETDATE (), 106): From a Select CONV ERT (varchar), GETDATE (), 107): 108, select CONVERT (varchar), GETDATE (), 14:58:28): (Varc Har (+), GETDATE (), 109): 6 2:58:34:133pm Select CONVERT (varchar), GETDATE (), (): 06-06-2012 Select CONV ERT (varchar), GETDATE (), 111): 2012/06/06 select CONVERT (varchar), GETDATE (),): 20120606 select CONVERT (varc Har (+), GETDATE (), 113): 14:58:58:960select CONVERT (varchar), GETDATE (), 114): 14:59:08:527select CONVERT (varchar), GETDATE (), (): 2012-06-06 14:59:14 Select CONVERT (varchar), GETDATE (), 121): 2012 -06-06 14:59:21.277Select CONVERT (varchar), GETDATE (), 126): 2012-06-06t14:59:28.190 select CONVERT (varchar), GETDATE (), 130): 17? ?? 1433 2:59:36:540pm Select CONVERT (varchar (+), 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.