financialdatapy.date module¶
This module parses and converts objects to date format objects
- financialdatapy.date.validate_date(period: str, start: bool = False) Timestamp[source]¶
Validate the format of date passed as a string.
- Parameters:
period (str) – Date in string. If None, date of today is assigned.
start (bool, optional) – Whether argument passed is a starting date or an ending date, defaults to False.
- Raises:
IntegerDateInputError – If integer type object is passed.
- Returns:
Date with format YYYY-MM-DD, YY-MM-DD, or YYYY.
- Return type:
pandas.Timestamp