Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.data.time_coordinates.normalize_date
Stay organized with collections
Save and categorize content based on your preferences.
Normalizes the given date value into a datetime.date
.
meridian
.
data
.
time_coordinates
.
normalize_date
(
date
:
meridian
.
data
.
time_coordinates
.
Date
)
->
datetime
.
date
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-05 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-05 UTC."],[[["\u003cp\u003eThe provided function normalizes a given date value.\u003c/p\u003e\n"],["\u003cp\u003eThe function's output is a \u003ccode\u003edatetime.date\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe input for the function is a date, as specified by the type alias \u003ccode\u003eDate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe function is located in the \u003ccode\u003emeridian.data.time_coordinates\u003c/code\u003e module, specifically within the \u003ccode\u003etime_coordinates.py\u003c/code\u003e file.\u003c/p\u003e\n"]]],["The core functionality is `normalize_date`, which transforms an input `Date` value into a standard `datetime.date` object. This function, part of the `meridian.data.time_coordinates` module, takes a user-defined `Date` type as input and outputs a standard Python date object. The source code for this operation can be found on GitHub.\n"],null,["\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/google/meridian/blob/v1.2.0/meridian/data/time_coordinates.py#L58-L69) |\n\nNormalizes the given date value into a `datetime.date`. \n\n meridian.data.time_coordinates.normalize_date(\n date: ../../../meridian/data/time_coordinates.md#Date\n ) -\u003e datetime.date"]]