轉換日期時間格式

在相應的資料表示、格式或計量單位之間执行“轉換日期時間格式”。

輸入: 文本結果: 文本

文本輸入

執行後查看結果

範例

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:56

Expected answer

2025-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:56

Expected answer

2025-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:56

Expected answer

2025-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:56

Expected answer

2025-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:56

Expected answer

2025-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:01

Expected answer

Thursday 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:01

Expected answer

Thursday 1st April 1999 22:33:01 +00:00 UTC
内置格式
Automatic
輸入格式字串
(empty)
輸入时區
UTC
輸出格式字串
dddd Do MMMM YYYY HH:mm:ss Z z
輸出时區
UTC
invalid input

輸入

1234567890

Expected rejection

Message matches pattern
Invalid 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:01

Expected answer

Thursday 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

相关工具

日期 / 時間

操作参考

查看原始技术文檔 (English)