Return a valid datetime obj. for datestamp instead of a string