YYYY-MM-DD HH:MM:SS

Source: Internet
Author: User

Memo: Yyyy-mm-dd HH:MM:SS Partial explanation



A day in the D month. One-digit date has no leading zeros.
DD a day of the month. A one-digit date has a leading zero.
The abbreviated name of the day of the DDD week, defined in Abbreviateddaynames.
dddd the full name of the day of the week, as defined in DayNames.
M-month number. One-digit month has no leading zeros.
MM month number. One-digit month has a leading zero.
Abbreviated name of the MMM month, defined in AbbreviatedMonthNames.
The full name of the MMMM month, as defined in MonthNames.
Y does not contain the year of the era. Does not have a leading zero.
YY does not contain the year of the era. has a leading zero.
The YYYY includes the four-digit year of the era.
GG period or ERA.
H12-hour hour. One-digit hours do not have leading zeros.
hh12Hours of the hour. One-digit hours have leading zeros.
H24    hours. One-digit hours do not have leading zeros.   
  hh              24    hours. One-digit hours have leading zeros.   
  m                 minutes. A single-digit number of minutes does not have a leading zero.   
  mm              min. A single-digit number of minutes has a leading zero.   
  s                 seconds. The number of seconds in a single digit does not have a leading zero.   
  ss              seconds. The number of seconds of one digit has a leading zero.   
  f              The fractional precision of    seconds is one digit. The remaining digits are truncated. If the time is 2013-05-20 14:02:30 yyyy-mm-ddHH:MM:SS If the format is Yyyy-mm-dd Hh:mm:ss is displayed as 2013-05-20 02:02:30

YYYY-MM-DD HH:MM:SS

Related Article

Cloud Intelligence Leading the Digital Future

Alibaba Cloud ACtivate Online Conference, Nov. 20th & 21st, 2019 (UTC+08)

Register Now >

Starter Package

SSD Cloud server and data transfer for only $2.50 a month

Get Started >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.