Method ToString
ToString(DateTime, string, string)
Converts a DateTime value to a string.
public static string ToString(this DateTime @this, string format, string timezone)
Parameters
thisDateTimeThe DateTime value.
formatstringThe format string (optional, can be null).
timezonestringThe timezone to use in the returned string (optional, can be null).
Returns
- string
The DateTime value converted to a string.