For linux : pip3 install datetime For windows: python -m pip install datetime
First day of the year using simple python script