Try to parse timestamp.
DateTime? tryToDateTime(TimeUnit unit, {bool isUtc = false}) { try { return toDateTime(unit, isUtc: isUtc); } catch (e) { return null; } }