HP Forums
Prime: how to detect date format - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Prime: how to detect date format (/thread-257465.html)



Prime: how to detect date format - giancarlo - 12-02-2013

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 - Michael de Estrada - 12-02-2013

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.