Date 解析字符串时,只有这一种格式是有一致定义的:YYYY-MM-DDTHH:mm:ss.sssZ
这这种格式里,如果没有时间部分,那么就是 UTC 的 00:00:00 ,也就是中国的 08:00:00 (如果有时间部分,那么当作本地时间解释)
All numbers must be base 10. If the MM or DD fields are absent "01" is used as the value. If the HH, mm, or ss fields are absent "00" is used as the value and the value of an absent sss field is "000". When the time zone offset is absent, date-only forms are interpreted as a UTC time and date-time forms are interpreted as a local time.
If the String does not conform to that format the function may fall back to any implementation-specific heuristics or implementation-specific date formats.
Date 解析字符串时,只有这一种格式是有一致定义的:YYYY-MM-DDTHH:mm:ss.sssZ
这这种格式里,如果没有时间部分,那么就是 UTC 的 00:00:00 ,也就是中国的 08:00:00 (如果有时间部分,那么当作本地时间解释)
其他格式,都是实现定义的:
分别提供年月日 ... 等等的构造:
Date ( year, month [ , date [ , hours [ , minutes [ , seconds [ , ms ] ] ] ] ] )
用的是本地时间(你的倒数第二个调用)。