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
this
DateTimeThe DateTime value.
format
stringThe format string (optional, can be null).
timezone
stringThe timezone to use in the returned string (optional, can be null).
Returns
- string
The DateTime value converted to a string.