toDateTime toDateTime

유형에 따라 매개 변수를 날짜/시간 값으로 변환합니다.

카테고리

전환

함수 구문

toDateTime(<parameters>)

매개 변수

매개변수
유형
ISO-8601 형식의 날짜 시간
문자열
시간대 id
문자열
시간대 없는 날짜 시간
dateTimeOnly
에포크의 정수 값(밀리초)
정수
NOTE
시간대 ID는 문자열 상수여야 합니다. 필드 참조나 식이 될 수 없습니다. 데이터 형식에 대한 자세한 내용은 이 페이지를 참조하세요.

서명 및 반환된 유형

toDateTime(<string>)

toDateTime(<stringified time zone id>, <dateTimeOnly>)

toDateTime(<integer>)

dateTime 반환

예시

toDateTime ("2023-08-18T23:17:59.123Z")

2023-08-18T23 반환:17:59.123Z

toDateTime(toDateTimeOnly("UTC", "2023-08-18T23:17:59.123"))

2023-08-18T23 반환:17:59.123Z

toDateTime(1560762190189)

2023-06-17T09:03:10.189Z 반환

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76