The value to format.
The given options for the format.
If value is null or undefined, then the empty string is returned. If value is a string, then the date is guessed from the string and reformatted to the format specified by options. Otherwise, the date or number specified by value is formatted to the culture, timezone, and format specified in the options.
Formats a given value.