Returns a string representation of the Date, according to the specified Mask$. The Mask$ is a string
which tells how the date should be formatted. The Mask$ accepts several reserved tokens:
%yyyy: Will be replaced by the year value, on 4 digits.
%yy: Will be replaced by the year value, on 2 digits.
%mm: Will be replaced by the month value, on 2 digits.
%dd: Will be replaced by the day value, on 2 digits.
%hh: Will be replaced by the hour value, on 2 digits.
%ii: Will be replaced by the minute value, on 2 digits.
%ss: Will be replaced by the second value, on 2 digits.
Example:
Debug FormatDate("Y=%yyyy, M= %mm, D=%dd", Date()) ; Will display the date under
; the form "Y=2002, M=10, D=03"
Debug FormatDate("%hh:%ii:%ss", Date()) ; Will display the time using the 00:00:00 format