pandas.Timestamp.strftime

pandas 3.1.1 · Arrays, scalars, and data types · method

Format a time value using strftime directives such as %Y-%m-%d. Period.strftime is deprecated in pandas 3.1.1.

Call syntax

Timestamp.strftime(format)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
format Required
Positional or keyword
str

Supply a format string or choose an output layout supported by this API.