아래의 예시를 통해 수식 필드에서의 날짜와 시간 계산, 워크플로 필드 업데이트, 검증 규칙에 대해 자세히 알아보세요.
수식 예시 1
레코드가 생성된 이후 경과된 시간을 계산하는 날짜/시간 수식:
NOW() - CreatedDate
지정된 소수 자릿수에 맞게 99.99XX와 같은 형식의 숫자 값이 반환됩니다.
해석 방법:
소수점 왼쪽의 값은 일수를 나타내며 그 자체로 해석하면 됩니다. 소수점 오른쪽의 값은 시간과 분 단위의 나머지 시간이 24시간에서 차지하는 비중을 계산한 결과를 나타냅니다.
예를 들어 2.25라는 계산 결과가 반환되었다면 이는 2일 6시간을 나타냅니다.
.25 * 1440 (24시간을 분 단위로 환산한 값) = 360분
360/60분 = 6시간
중요: 시간대 변환 문제에 유의하세요.
수식 예시 2
아래와 같이 수식을 작성해서 계산된 일자/시간 수식 값을 나타낸다고 해봅시다.
TEXT(NOW() - CreatedDate)
이때 표시되는 값은 UTC가 기준이며 이는 사용자의 표준시간대와는 아마 다를 것입니다.
해석 방법:
시간대 값을 조정하기 위해 수식을 수정해 봅시다. UTC로부터 7시간을 빼야 하는 시간대라면 24시간 중에 7시간이 차지하는 비중을 소수로 계산해야 합니다.
7 * 60분 = 420분
24시간 중 420/1440분 = 0.2916
이후 아래와 같이 수식을 수정하면 됩니다.
TEXT((CreatedDate) - 0.2916)
관련 문서:
수식 필드 만들기
수식에서 날짜 , 일자/시간, 시간 값 사용
날짜 및 일자/시간 수식 필드 작업을 위한 팁
일자/시간 필드에서 시간을 더하거나 빼기
000385148

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.