modin.pandas.DatetimeIndex.strftime¶
- DatetimeIndex.strftime(date_format: str) ndarray[object_][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.47.0/src/snowflake/snowpark/modin/plugin/extensions/datetime_index.py#L290-L292)¶
Convert to Index using specified date_format.
Return an Index of formatted strings specified by date_format, which supports the same string format as the python standard library. Details of the string format can be found in python string format doc.
Formats supported by the C strftime API but not by the python string format doc (such as “%%R”, “%%r”) are not officially supported and should be preferably replaced with their supported equivalents (such as “%%H:%%M”, “%%I:%%M:%%S %%p”).
Note that PeriodIndex support additional directives, detailed in Period.strftime.
- Parameters:
date_format (str) – Date format string (e.g. “%%Y-%%m-%%d”).
- Returns:
NumPy ndarray of formatted strings.
- Return type:
ndarray[object]
See also
to_datetimeConvert the given argument to datetime.
DatetimeIndex.normalizeReturn DatetimeIndex with times to midnight.
DatetimeIndex.roundRound the DatetimeIndex to the specified freq.
DatetimeIndex.floorFloor the DatetimeIndex to the specified freq.
Timestamp.strftimeFormat a single Timestamp.
Period.strftimeFormat a single Period.
Examples