Jump to content
Sign in to follow this  
MaartenDuits

Used date format

Recommended Posts

MaartenDuits

Hi,

Is it possible to retrieve what the date format is the user of the scripts is using? I.E. my date format is dd-mm-yyyy (Netherlands) but somebody in the USA use mm-dd-yyyy.

Hope somebody can help me.

Kind regards,

Maarten.


Kind regards,Maarten

Share this post


Link to post
Share on other sites
Jos

zoiets:

Local $lngX = DllCall("kernel32.dll", "long", "GetLocaleInfo", "long", 0x400, "long", 0x1F, "str", "", "long", 255)
If Not @error And $lngX[0] <> 0 Then
    Msgbox(0,"dateformat",$lngX[3])
Else
    Msgbox(0,"dateformat","problem retrieving")
EndIf

mvg

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
MaartenDuits

Jos,

Exactly!! Thanks!!


Kind regards,Maarten

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×