pandas.Timestamp.strptime#

classmethod Timestamp.strptime(date_string, format)#

Convert string argument to datetime.

This method is not implemented; calling it will raise NotImplementedError. Use pd.to_datetime() instead.

Parameters:
date_stringstr

String to convert to a datetime.

formatstr, default None

The format string to parse time, e.g. “%d/%m/%Y”.

See also

pd.to_datetime

Convert argument to datetime.

datetime.datetime.strptime

Return a datetime corresponding to a string representing a date and time, parsed according to a separate format string.

datetime.datetime.strftime

Return a string representing the date and time, controlled by an explicit format string.

Timestamp.isoformat

Return the time formatted according to ISO 8601.

Examples

>>> pd.Timestamp.strptime("2023-01-01", "%d/%m/%y")
Traceback (most recent call last):
NotImplementedError