Feb-05-2019, 03:40 PM
(Feb-04-2019, 08:52 PM)ichabod801 Wrote: What is not working?
>>> text = '2019-04-02' >>> nums = [int(x) for x in text.split('-')] >>> dt = datetime.date(*nums) >>> dt.strptime('%b %d') 'Feb 04'
I've got this row above of code but can't use your script to get it right..
I tried this:
nums = [int(x) for x in due_date.split('-')] >>> dt = datetime.date(*nums) >>> dt.strptime('%b %d')but with no luck.