Navigation:  thinBasic language > Modules > DT (Date Handling) >

DT_SetDateCentury

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_SetDateCentury() function sets the active century.

 

Syntax

 

DT_SetDateCentury() AS STRING

 

Returns

 

Returns AS STRING

   The active date century.

 

Parameters

 

 

Remarks

       

       The century is a two characters string (for example “20” for year 2000).

 

Restrictions

 

 

See also

       

     DT_GetDateCentury

  

 

Examples

 

  IF DT_GetDateCentury() <> "19" THEN

     MSGBOX  0, "Set the date century to: " & DT_SetDateCentury("19")

     ' results: "Set the date century to: 19"

  END IF

 

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