datePatternOptions
Creates options map for date pattern configuration.
Return
A map containing the datePattern option, or empty map if value is null.
Parameters
value
The date pattern as a String or DateTimeFormatter, or null for no pattern.
Throws
if value is not String or DateTimeFormatter.