Method DateFromString
DateFromString(string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
Parameters
dateString
stringThe string.
Returns
- Date
Time A DateTime.
DateFromString(string, string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
Parameters
Returns
- Date
Time A DateTime.
DateFromString(string, string, string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
Parameters
Returns
- Date
Time A DateTime.
DateFromString(string, string, string, DateTime?, DateTime?)
Converts a string to a DateTime using the $dateFromString aggregation operator.
public static DateTime? DateFromString(string dateString, string format, string timezone, DateTime? onError, DateTime? onNull)
Parameters
dateString
stringThe string.
format
stringThe format string.
timezone
stringThe time zone.
onError
DateTime ?The onError value.
onNull
DateTime ?The onNull value.
Returns
- Date
Time ? A DateTime.