For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

DATE_PART() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Extracts a specified part of a date or timestamp.

Supported parts​

PartAliasesReturns
yeary, yy, yyyy, yrCalendar year
quarterq, qtrQuarter (1–4)
monthmm, monMonth (1–12)
weekw, wk, woy, weekofyearISO week of year
dayd, dd, dayofmonthDay of month
day_of_weekdow, dw, dayofweek, dayofweekisoISO weekday (Monday=1 through Sunday=7)
day_of_yeardoy, dy, dayofyearDay of year (1–366)
year_of_weekyow, yearofweek, yearofweekisoISO year of the week
hourh, hh, hrHour
minutem, mi, minMinute
seconds, secSecond
timezone_hourtzhTime zone offset hours
timezone_minutetzmTime zone offset minutes

Syntax​

DATE_PART(part, date_or_timestamp)

Parameters​

ParameterDescriptionData TypeRequired
partDate or time part to extract (for example month, day, year)StringYes
date_or_timestampDate or timestamp value to extract fromDate or timestampYes

Notes​

  • Alias for EXTRACT(part FROM date_or_timestamp)

Example​

SELECT
DATE_PART('month', start_date)
FROM
rippling.employee.Employee
LIMIT
5;