Method ToString
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
ToString(DateTime, string, string)
Converts a DateTime value to a string.
public static string ToString(this DateTime @this, string format, string timezone)
Parameters
this
DateTime
The DateTime value.
format
string
The format string (optional, can be null).
timezone
string
The timezone to use in the returned string (optional, can be null).
Returns
The DateTime value converted to a string.