dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

Time part should not be there if time in search_dates output if time information is not present in text.

Open KalakondaKrish opened this issue 1 year ago • 1 comments

I have used search_dates in dateparser.search. The output of search_dates is 00:00:00 when time information is not present. For example in I will connect with you on Monday, the output is [('on monday', datetime.datetime(2023, 4, 10, 0, 0))].

Is it possible for these cases where time is not present, we return only the date part of the datetime and not return time as 0,0? In postprocessing to remove time when it is 0,0. But, it will create problems when the time is indeed 0,0. How to solve this?

KalakondaKrish avatar Apr 03 '23 13:04 KalakondaKrish