read database timestamp into datetime variable python code example
Example 1: timestamp to date python
from datetime import datetime
timestamp = 1586507536367
dt_object = datetime.fromtimestamp(timestamp)
Example 2: HOW TO CREATE A DATETIME LIST QUICK
import pandas as pd
from datetime import datetime
datelist = pd.date_range(datetime.today(), periods=100).tolist()