HP Forums

Full Version: Prime: how to detect date format
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

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.