--- title: "Using Datetime Expressions" slug: "using-datetime-expressions" updated: 2024-10-21T14:40:17Z published: 2024-10-21T14:40:17Z canonical: "support.tulip.co/using-datetime-expressions" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 날짜/시간 표현식 사용 *표현식 편집기를 사용하여 Tulip에서 날짜/시간 데이터를 수정하고 조작하는 방법을 알아보세요.* 날짜/시간 데이터로 작업할 때 애플리케이션에서 데이터를 변경하고 싶을 때가 있습니다. 표현식을 사용하여 지정된 기간을 더하거나 빼거나, 날짜 시간을 지정된 단위로 반올림하거나, 타입 캐스팅 표현식을 사용하여 데이터 유형을 변경할 수 있습니다. 이러한 시나리오와 표현식을 사용하여 날짜/시간 데이터를 수정하는 방법을 살펴보겠습니다. 참고: 이러한 표현식 중 일부의 경우 표현식에 표준 시간대를 포함해야 합니다. 지원되는 표준 시간대 목록은 [이 웹사이트를](https://www.php.net/manual/en/timezones.php) 참조하세요. --- **add_time()**은 주어진 시간에 주어진 기간 단위를 추가합니다. ![Datetime Expressions - add_time ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Datetime%20Expressions%20-%20add_time%20ex.png) **subtract_time()**주어진 시간에서 주어진 기간 단위를 뺍니다. ![Datetime Expressions - subtract_time ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Datetime%20Expressions%20-%20subtract_time%20ex.png) ![Datetime Expressions - add subtract_time ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Datetime%20Expressions%20-%20add%20subtract_time%20ex.gif) **rounddatetime()**날짜를 주어진 단위로 잘라냅니다. ![Datetime Expressions - rounddatetime ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Datetime%20Expressions%20-%20rounddatetime%20ex.png) 위의 표현식을 사용하면 다음과 같이 날짜 시간이 가장 가까운 날짜로 반올림됩니다: ![Datetime Expressions - rounddatetime ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/Datetime%20Expressions%20-%20rounddatetime%20ex%20in%20app.png) ## 날짜 시간 타입 캐스팅 다음 표현식은 기존 데이터 유형을 다른 데이터 유형으로 타입캐스트하여 형식을 변경하고 다양한 컨텍스트에서 사용할 수 있도록 합니다. **datetimetotext()**는 지정된 날짜/시간 데이터 유형을 텍스트 데이터 유형으로 변경합니다. ![datetimetotext expression ex](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expression%20ex.png) ![datetimetotext expressions ex in app](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/datetimetotext%20expressions%20ex%20in%20app.png) **texttodatetime()**주어진 텍스트 데이터 유형을 날짜/시간 데이터 유형으로 변경합니다. --- 원하는 것을 찾았나요? [community.tulip.co로](https://community.tulip.co/?utm_source=intercom&utm_medium=article-link&utm_campaign=all) 이동하여 질문을 게시하거나 다른 사람들이 비슷한 문제를 겪었는지 확인할 수도 있습니다!