Skip to content

LazyColumn.dt.date

date property

date: LazyColumn

Converts the datetime values to date-only (removes time component).

Returns:

Name Type Description
LazyColumn LazyColumn

A new LazyColumn with date values (YYYY-MM-DD).

Examples:

print(df.head())
#              my_datetime_column
# 0  2023-01-01 00:00:00
# 1  2023-01-15 12:34:56
# 2  2023-03-31 23:59:59

df["my_datetime_column"].dt.date
# Expected output (LazyColumn in lazy mode):
# [2023-01-01, 2023-01-15, 2023-03-31, ...]