I have situation where I should ignore the timestamp in a date string. I have tried the below command but with no luck.
"start" variable used below is in AbsTime (Ex: 01MAY2017 11:45) and not a string.
start_date = datetime.datetime.strptime(start, '%d%^b%Y').date()
print start_date
My output should be :
01MAY2017 or 01MAY2017 00:00
Could any one help me.
start.split()[0]will give you the first output%^bidea from?%&^are on5&6(shift) on the regular keyboard.