02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

DATEADD$<br />

Chapter —Program Instructions<br />

Purpose Function returning a new date after a number of days have been added to,<br />

or subtracted from, the current date or optionally a specified date.<br />

Syntax DATEADD$([,][,])<br />

is any date given according to the DATE$ format, which a certain<br />

number of days should be added to or subtracted from.<br />

is the number of days to be added to (or subtracted from) the<br />

current date or optionally the date specified by .<br />

is one or two optional flags "F" or "M":<br />

"F" specifies that the date will be returned according to the<br />

format specified by FORMAT DATE$.<br />

"M" specifies the value given in will mean months<br />

instead of days.<br />

Remarks The original date () should be entered according to the syntax for<br />

the DATE$ variable, that is in the order YYMMDD, where:<br />

YY = Year Last two digits (for example 2003 = 03)<br />

MM = Month Two digits (01-12)<br />

DD = Day Two digits (01-28|29|30|31)<br />

Example: December 1, 2003 is entered as "031201".<br />

The built-in calendar corrects illegal values for the years 1980-2048, for<br />

example the illegal date 031232 will be corrected to 040101. When for<br />

example, adding one month to the date 2004-01-31, the result will be<br />

rounded off to 2004-02-29 (2004 is a leap year).<br />

The number of days to be added or subtracted should be specified as a<br />

positive or negative numeric expression respectively.<br />

If no "F" flag is included in the DATEADD$ function, the result will be<br />

returned according to the DATE$ format, see above.<br />

If the DATEADD$ function includes an "F" flag, the result will be returned<br />

in the format specified by FORMAT DATE$.<br />

"F" and "M" flags can be combined in the same instruction without any<br />

separating character, that is, "FM" or "MF". No other characters are accepted.<br />

<strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong> 7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!