by VB Man (3 Submissions)
Category: Math/Dates
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
This submission uses Pat McCotter's code one step
further (https://www.vbcoders.com/vb/scripts/showcode.asp?txtCodeId=1852).
This program will find what order the short date
parameter is in in the Regional Settings in the
Control Panel, and reformat the date so that it
will always be MM/DD/YYYY.
An application can have unexpected results if you
just assume, or are not aware, that the short date
is not MM/DD/YYYY. So to be sure you are using
the right date for calculations, download this.
Please vote for this if you find it useful.
Code Returns
A date in MM/DD/YYYY format
Upload