Share via

EnumDateFormatsProcEx callback function

An application-defined callback function that processes enumerated date format information provided by the EnumDateFormatsEx function. The DATEFMT_ENUMPROCEX type defines a pointer to this callback function. EnumDateFormatsProcEx is a placeholder for the application-defined function name.


BOOL CALLBACK EnumDateFormatsProcEx(
  _In_ LPTSTR lpDateFormatString,
  _In_ CALID  CalendarID


  • lpDateFormatString [in]
    Pointer to a buffer containing a null-terminated date format string. This string is a long or short date format, depending on the value of the dwFlags parameter of EnumDateFormatsEx.

  • CalendarID [in]
    Calendar identifier associated with the date format string.

Return value

Returns TRUE to continue enumeration or FALSE otherwise.


An EnumDateFormatsProcEx function can carry out any desired task. The application registers this function by passing its address to the EnumDateFormatsEx function.

This callback function can process enumerated data from custom locales. Data is not guaranteed to be the same from computer to computer or between runs of an application. If your application must persist or transmit data, see Using Persistent Locale Data.


Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]


Winnls.h (include Windows.h)

See also

National Language Support

National Language Support Functions