VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get Consistent Date regardless of Regional Settings

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

Rate Get Consistent Date regardless of Regional Settings

Upload

Download this snippet    Add to My Saved Code

Get Consistent Date regardless of Regional Settings Comments

No comments have been posted about Get Consistent Date regardless of Regional Settings. Why not be the first to post a comment about Get Consistent Date regardless of Regional Settings.

Post your comment

Subject:
Message:
0/1000 characters