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

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com