i want to use Class and try~except function to make codes. input is that i put integer (ex: 20160101) then it converts to datetime. And final output is the day of the week.
I think i can convert integer to date like this:
>>>import datetime
>>>d = "20160101"
>>>d_datetime = datetime.datetime.strptime(d, '%Y%m%d')
but i don't know how to make code example using class,please help me to make codes...