FreeBASIC  0.91.0
intl_getdateformat.c
Go to the documentation of this file.
1 /* get short DATE format */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 int fb_IntlGetDateFormat( char *buffer, size_t len, int disallow_localized )
7 {
8  if( fb_I18nGet( ) && !disallow_localized ) {
9  if( fb_DrvIntlGetDateFormat( buffer, len ) )
10  return TRUE;
11  }
12  if( len < 11 )
13  return FALSE;
14  memcpy(buffer, "MM/dd/yyyy", 11);
15  return TRUE;
16 }