Datetime functions - Overview

Modified on Thu, 9 Jul at 10:49 AM

Datetime functions

Functions for working with dates

These functions allow you to easily convert between time zones, calculate future dates, or format dates according to regional standards. Occasionally, you'll need IANA language tags to select your region, e.g., en-US. For reference, you can use the full list of languages and regions. For a full region identifier, combine a language tag with a country tag like in the en-US example.

FunctionDescription
add_timeAdd a time increment to a given datetime.
current_timeReturn current time offset by a given number of hours.
format_datetime_to_timezoneSet a timezone for a datetime object and format it.
timespanCalculate the timespan between two datetime objects.
to_datetimeConvert a string object to datetime.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article