sx_SetDateFormat

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_SetDateFormat

VB Declaration

Declare Sub sx_SetDateFormat Lib "Apollo9.dll"

(ByVal uiDateType As Integer)

C Declaration

VOID FAR PASCAL sx_SetDateFormat

(USHORT uiDateType);

Description

Defines the format of date strings returned by sx_GetDateString.

Parameters

Any one of the following defined constanant values:

 

AMERICAN 0 "MM/DD/YY"

ANSI 1 "YY.MM.DD"

BRITISH 2 "DD/MM/YY"

FRENCH 3 "DD/MM/YY"

GERMAN 4 "DD.MM.YY"

ITALIAN 5 "DD-MM-YY"

SPANISH 6 "DD-MM-YY"

 

If sx_SetCentury is True, the century digits will precede the year digits in each of the formats shown above.

VB Example

Sub Form_Load ()

' main form initialization routines

sx_CloseAll

sx_SetDateFormat ANSI

sx_SetCentury True

sx_SetDeleted True

iRetVal = sx_SetHandles(30)

 

If Dir$("c:\ \Apollo7\Data\sxcust.dbf") = "" Then

MsgBox "Test file missing. Aborting!"

End

End If

End Sub

C Example

// Standard initialization

sx_SetStringType(1); // C strings

sx_SetCentury(TRUE); // dates to display century

sx_SetDateFormat(AMERICAN); // date format MM/DD/CCYY

sx_SetDeleted(TRUE); // filter deleted records

See Also

sx_SetCentury, sx_SetEpoch, sx_GetDateJulian, sx_GetDateString, sx_Replace