VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get Consistent Date regardless of Regional Settings

VB Man  (3 Submissions)   Math/Dates   Visual Basic 3.0   Beginner   Wed 3rd February 2021

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.

Returns
A date in MM/DD/YYYY format

Rate Get Consistent Date regardless of Regional Settings (3(3 Vote))
Get Consistent Date regardless of Regional Settings.bas

Get Consistent Date regardless of Regional Settings Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters