Navigation:  thinBasic Modules > DT (Date Handling) >

DT_SetDateSeparator

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_SetDateSeparator() function sets a the date separator character ('-' for example).

 

Syntax

 

 DT_SetDateSeparator(sSeparator AS STRING) AS STRING

 

Returns

 

Returns AS STRING

   The new date separator.

 

Parameters

 

sSeparator  AS STRING

The date separator.

 

Remarks

 

 

Restrictions

 

 

See also

 

     DT_GetDateSeparator

 

 

Examples

 

  IF DT_GetDateSeparator() <> "/" THEN

     MSGBOX  0, "Set the date separator to: " & DT_SetDateSeparator("/")

     ' results: "Set the date separator to: /"

  END IF