Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - getsetdate() get and set the date format http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getsetdate()        Get and set the date format
------------------------------------------------------------------------------
 Declaration
   getset.hdr

 Syntax
   func uint getsetdate extern
   param value uint uDateType

 Arguments
   uDateType is the new date type.

 Return
   The previous date type.

 Description
   The getsetdate() function sets the date type and returns its
   previous value.

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_getsetdate
   vardef
      uint nDateType
   enddef
   nDateType := getsetdate( DATE_ANSI )           // save and set date type
   ? "Today's date in ANSI form is   ", today()
   getsetdate( nDateType )                        // restore date type
   ? "Today's date in default form is", today()
   endproc

   proc main
   Test_getsetdate()
   endproc

See Also: getdate() setdate()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson