範例
A UTC date as ISO 8601 1
A UTC date as ISO 8601 1. This is a constructed public fixture.
輸入
01/01/2025 12:34:56Expected answer
2025-01-01T12:34:56Z2025-01-01T12:34:56Z
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
YYYY-MM-DD[T]HH:mm:ss[Z]- 輸出时區
UTC
A UTC date as ISO 8601 2
A UTC date as ISO 8601 2. This is a constructed public fixture.
輸入
02/01/2025 12:34:56Expected answer
2025-01-02T12:34:56Z2025-01-02T12:34:56Z
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
YYYY-MM-DD[T]HH:mm:ss[Z]- 輸出时區
UTC
A UTC date as ISO 8601 3
A UTC date as ISO 8601 3. This is a constructed public fixture.
輸入
03/01/2025 12:34:56Expected answer
2025-01-03T12:34:56Z2025-01-03T12:34:56Z
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
YYYY-MM-DD[T]HH:mm:ss[Z]- 輸出时區
UTC
A UTC date as ISO 8601 4
A UTC date as ISO 8601 4. This is a constructed public fixture.
輸入
04/01/2025 12:34:56Expected answer
2025-01-04T12:34:56Z2025-01-04T12:34:56Z
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
YYYY-MM-DD[T]HH:mm:ss[Z]- 輸出时區
UTC
A UTC date as ISO 8601 5
A UTC date as ISO 8601 5. This is a constructed public fixture.
輸入
05/01/2025 12:34:56Expected answer
2025-01-05T12:34:56Z2025-01-05T12:34:56Z
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
YYYY-MM-DD[T]HH:mm:ss[Z]- 輸出时區
UTC
Translate DateTime Format
輸入
01/04/1999 22:33:01Expected answer
Thursday 1st April 1999 22:33:01 +00:00 UTCThursday 1st April 1999 22:33:01 +00:00 UTC
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
dddd Do MMMM YYYY HH:mm:ss Z z- 輸出时區
UTC
automatic input format
輸入
1999-04-01 22:33:01Expected answer
Thursday 1st April 1999 22:33:01 +00:00 UTCThursday 1st April 1999 22:33:01 +00:00 UTC
- 内置格式
Automatic- 輸入格式字串
(empty)- 輸入时區
UTC- 輸出格式字串
dddd Do MMMM YYYY HH:mm:ss Z z- 輸出时區
UTC
invalid input
輸入
1234567890Expected rejection
Message matches patternInvalid format.- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
dddd Do MMMM YYYY HH:mm:ss Z z- 輸出时區
UTC
timezone conversion
輸入
01/04/1999 22:33:01Expected answer
Thursday 1st April 1999 17:33:01 -05:00 ESTThursday 1st April 1999 17:33:01 -05:00 EST
- 内置格式
Standard date and time- 輸入格式字串
DD/MM/YYYY HH:mm:ss- 輸入时區
UTC- 輸出格式字串
dddd Do MMMM YYYY HH:mm:ss Z z- 輸出时區
US/Eastern