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 - fdtod() convert a field date string to a date value http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 fdtod()             Convert a field date string to a date value
------------------------------------------------------------------------------
 Declaration
   date.hdr

 Syntax
   proc fdtod extern
   param       date    dDate, ;
         const char(8) cDate

 Arguments
   dDate receives a date value derived from the passed field date
   string.

   cDate is a field date string.

 Return
   None.

 Description
   The fdtod() function derives a date value from the passed field date
   string and places it in the dDate parameter passed by reference. The
   passed field date string must be in YYYYMMDD form (corresponding to
   the internal representation of date fields in databases).

 Example
   #define EXAMPLE_DATE
   #include example.hdr

   proc Test_fdtod
   vardef
      date dTest
   enddef
   set century on
   fdtod( dTest, "20000101" )      // print 01/01/2000
   ? dTest
   endproc

   proc main
   Test_fdtod()
   endproc

See Also: ctod()

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