Class NullableDateTimeExtensions
This static class holds methods that can be used to express MongoDB specific operations in LINQ queries.
public static class NullableDateTimeExtensions
- Inheritance
-
NullableDateTimeExtensions
- Inherited Members
Methods
ToString(DateTime?, string, string, string)
Converts a NullableDateTime value to a string.
public static string ToString(this DateTime? @this, string format, string timezone, string onNull)
Parameters
thisDateTime?The NullableDateTime value.
formatstringThe format string (optional, can be null).
timezonestringThe timezone to use in the returned string (optional, can be null).
onNullstringThe string to return if the NullableDateTime value is null.
Returns
- string
The NullableDateTime value converted to a string.