(Pdb) arrow.get('2016-01-01')
<Arrow [2016-01-01T00:00:00+00:00]>
(Pdb) arrow.get('20160101')
<Arrow [1970-08-22T08:01:41+00:00]>
So, I want my function to be able to use arrow
library in python to parse date strings. However, as can be seen from above code, it gives different results based on whether -
is present in the date string or not. How can I modify it so that it gives same results for both?