[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Getting date into a Save/Get (addendum



Reply to note from Harry Binswanger  Fri, 15 May
1998 17:03:18 -0400 (EDT)

Also, Harry, note that a date mask is *required*;  doesn't work.
To get the date in the user's prevailing format into a S/G, you first need
to evaluate  to get the date mask; then you can plug the result into
:

>;*; Assign prevailing date mask to S/G 01
+">">;*; Construct the  statement
;*; (S/G 01 now contains, e.g., "")
>;*; Evaluate it (S/G 01 now contains, e.g., "May 16, 1998")
;*; Display contents of S/G 01 on PRompt line

Or, more compactly:

+">">>

If you want to change the prevailing date mask before constructing the
 statement, bear in mind that the DEFAULT or D command requires the
/NV switch if its argument contains a space, or if case is significant.
Thus:

BX (D DZ=Mmmm d, yyy);*;  = "MMMM" (result truncated and uppercased)

whereas

BX (D/NV DZ=Mmmm d, yyy);*;  = "Mmmm d, yyy" (intended result)


--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/