Navigation:  thinBasic Modules > DT (Date Handling) >

DT_GetDateCentury

Previous pageReturn to chapter overviewNext page

 

Description

 

The DT_GetDateCentury() function returns the active century.

 

Syntax

 

DT_GetDateCentury() 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_SetDateCentury

 

 

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.7.0.0 Web Site: http://www.thinbasic.com