{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

DateTimeTo2000

Use this function if the database you use delivers only a two digit date based on some "base date". The number argument should be the base date used by the database for its internal year calulations (see the database documentation).

The function converts a date into a 4 digit date according to a number which should be in the range [0,..,99]. The date argument can be a 2 or 4 digit date, however, only the last two digits "xy" are significant. If the value of the last two digits "xy" (i.e. the last two digits interpreted as an integer) are smaller or equal to Number, then the date returned is "20xy"; otherwise the date returned is "19xy".

Usage:

DateTimeTo2000( DateTimeString )

Returns:

Year 2000 Date

Examples:

DateTimeTo2000(CDateTime(1992,12,12,1,20,1), 99)
-> 2092/12/12 1:20:01
i-net Clear Reports
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - DateTimeTo2000