Click or drag to resize
NanoXLSX

NumberFormatIsDateFormat Method

Determines whether a defined style format number represents a date (or date and time)

Namespace: NanoXLSX.Styles
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+b0ed5f8a99a50b9e6528224889fbd7f23c30b364
Syntax
C#
public static bool IsDateFormat(
	NumberFormatFormatNumber number
)

Parameters

number  NumberFormatFormatNumber
Format number to check

Return Value

Boolean
True if the format represents a date, otherwise false
Remarks
Custom number formats (higher than 164), as well as not officially defined numbers (below 164) are currently not considered during the check and will return false
See Also