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 - today() return the current system date http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 today()             Return the current system date
------------------------------------------------------------------------------
 Declaration
   system.hdr

 Syntax
   func date today extern

 Arguments
   None.

 Return
   The current system date.

 Description
   The today() function is returns the current system date in the
   format specified by the set date to command.

   This function is identical to the date() function in dBase. The name is
   different because date is a reserved word in Force.

 Example
   #define EXAMPLE_SYSTEM
   #include example.hdr

   proc Test_today
   ? today()
   ? year( today() )
   ? cmonth( today() )
   ? cdow( today() )
   ? daysfrom( today(), 30 )
   ? daysfrom( today(), -30 )
   endproc

   proc main
   Test_today()
   endproc

See Also: settoday()

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