Phpmssql time format

Source: Internet
Author: User
Mssql outputs data in the system time format by default. you can adjust the system time format to solve the problem. of course, the solution is flexible in the program, for example:

"Select convert (char, date field, 120) as date2 from table"

Convert (char, date, N)
N date style
0 04 2 2005 AM
1 04/02/05
2 05.04.02
3 02/04/05
4 02.04.05


5 02-04-05
6 02 04 05
7 04 02, 05
09:06:18
9 04 2 2005 9: 06: 18: 857AM
10 04-02-05
11 05/04/02
12 050402
13 02 04 2005 09: 06: 18: 857
14 09: 06: 18: 857
20 09:06:18
21 09:06:18. 857
22 04/02/05 9:06:18 AM
23
24 09:06:18
25 09:06:18. 857
100 04 2 2005 AM
101
102 2005.04.02
103 02/04/2005
104 02.04.2005
105 02-04-2005
106 02 04 2005
107 04 02,200 5
09:06:18 108
109 04 2 2005 9: 06: 18: 857AM
110 04-02-2005
111 2005/04/02
112 20050402
113 02 04 2005 09: 06: 18: 857
114 09: 06: 18: 857
120 09:06:18
121 09:06:18. 857
126: 06: 18.857
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.