Path: blob/master/Datetime/Datetime_Convert_datetime_object_to_string_date.ipynb
2973 views
Kernel: Python 3
Datetime - Convert datetime object to a formatted date string
Tags: #datetime #snippet #operations #python
Author: Florent Ravenel
Last update: 2023-07-05 (Created: 2023-07-05)
Description: This notebook provides an introduction to using the Python datetime library to work with dates and times.
References:
Input
Import libraries
In [1]:
Setup Variables
To parse your date format : you can use the d3 time format documentation
datetime_obj
: Datetime objectstring_date_format
: String date format
In [2]:
Model
Convert a datetime object to string date
In [3]:
Output
Display new date
In [4]: