Prime: how to detect date format



#2

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.


#3

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.


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP 50g - displaying result in engineering format Sean Freeman 10 530 11-24-2013, 05:44 AM
Last Post: C.Ret
  HP PRIME: Fixed 4 number format 0.001000 Joseph Ec 18 808 11-07-2013, 11:51 AM
Last Post: Geoff Quickfall
  PRIME: re-format the flash drive to recover the operating system Harold A Climer 2 240 11-06-2013, 12:22 AM
Last Post: Michael de Estrada
  Date/time formats R. Pienne 4 310 11-01-2013, 12:43 PM
Last Post: Marcus von Cube, Germany
  File Format: hpprgm Thomas Chrapkiewicz 6 383 10-30-2013, 09:32 PM
Last Post: Thomas Chrapkiewicz
  How to set the Date.Time etc on a WP34S Harold A Climer 4 289 10-29-2013, 09:32 PM
Last Post: FORTIN Pascal
  Date/time programs for the HP 35s R. Pienne 0 133 10-03-2013, 02:37 PM
Last Post: R. Pienne
  go71b 'lexs' or 'raws' file format? Christoph Giesselink 2 224 08-21-2013, 02:53 AM
Last Post: Christoph Giesselink
  HP 15C LE, Program Display Format Control Uli 4 308 01-20-2013, 01:22 AM
Last Post: Ethan Conner
  Date & Time disappear on WP 34S René Franquinet 16 710 12-10-2012, 08:24 AM
Last Post: Walter B

Forum Jump: