The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Prime: how to detect date format
Message #1 Posted by Giancarlo on 2 Dec 2013, 2:08 a.m.

Hello, For a program i am writing on my Prime, i would like to detect which date settings the user selected in order to do some calculations.

What i'd like to do is something like this:

BEGIN BLABLA(DD, MM, YYYY)

Local t;

t= HDATE; // THE PARAMETERS READ FROM THE PRIME

HDATE:= "DD/MM/YYYY"; // just inventing :+)

... DO_MY_CALCULATIONS...;

HDATE:= t; // setting back the date parms

END

Any idea if the date parameters (flags) can be read somewhere?

Thanks

Giancarlo From the cappuccino state













Edited: 2 Dec 2013, 2:14 a.m.

      
Re: Prime: how to detect date format
Message #2 Posted by Michael de Estrada on 2 Dec 2013, 11:21 a.m.,
in response to message #1 by Giancarlo

Well, the Date variable always returns the date in the format yyyy.mmdd, regardless of how it is shown on page 2 of the Home settings, so you don't need to change anything to do date calculations. Also, if you want to change the date you can type Date:=yyyy.mmdd.

Edited: 2 Dec 2013, 12:14 p.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall