GetDateFormat

[DllImport("Kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)][return: MarshalAs(UnmanagedType.U4)]
public static extern uint GetDateFormat(
   uint Locale,
   uint dwFlags,
   ref SYSTEMTIME lpDate,
   string lpFormat,
   StringBuilder lpDateStr,
   int cchDate
);

Microsoft documentation: Link

Last updated