Sign in to follow this  
Followers 0
MaartenDuits

Used date format

3 posts in this topic

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



#2 ·  Posted (edited)

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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  
Followers 0