Method DateFromString
DateFromString(string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
public static DateTime DateFromString(string dateString)
Parameters
dateString
stringThe string.
Returns
- DateTime
A DateTime.
DateFromString(string, string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
public static DateTime DateFromString(string dateString, string format)
Parameters
Returns
- DateTime
A DateTime.
DateFromString(string, string, string)
Converts a string to a DateTime using the $dateFromString aggregation operator.
public static DateTime DateFromString(string dateString, string format, string timezone)
Parameters
Returns
- DateTime
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
- DateTime?
A DateTime.