Dating problem! - Help me!

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Dating problem! - Help me!

Post by sudip »

Hello Rathi,
rathinagiri wrote:Yes, this is the same for my another XP machine too!

So, I think we can utilize the same to find out the user's date format.

Thanks Grigory Filatov for the report.
If possible please send some code regarding how to retrieve date format from Windows Registry in this thread.

(BTW, I don't know how to read registry value from HMG)

TIA.

Regards.

Sudip
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Dating problem! - Help me!

Post by Rathinagiri »

Yes. You can see a sample in c:\hmg\samples\registry.

Now, for getting the current date format, we can use the following function.

hb_ValToStr( RegistryRead( "HKEY_CURRENT_USER\Control Panel\International\sShortDate" ) )
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Dating problem! - Help me!

Post by esgici »

Hi

Code: Select all

    MsgBox( SET( _SET_DATEFORMAT ) )   // mm/dd/yy
    SET CENT ON
    MsgBox( SET( _SET_DATEFORMAT ) )   // MM/DD/YYYY
    SET DATE ANSI
    MsgBox( SET( _SET_DATEFORMAT ) )   // YYYY.MM.DD
When the only tool you have is a hammer, everything looks like a nail :)


Regards

--

Esgici
Viva INTERNATIONAL HMG :D
Post Reply