I'm getting from API DateTime.Date
, that means Date
without time, and sometimes I'm getting DateTime
with full valid date, but in case when I'm getting value without Time and since property is type of DateTime
it will include also time but with value of zeros.
So my string looks like this:
29/08/2019 00:00:00
How could I recognize when it's without valid Time and remove this 00:00:00
from my string?
Thanks guys
Cheers