Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>dateword()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DATEWORD()

    DATEWORD() returns a character string describing the system date (e.g.,
    "December 25, 1988").  The syntax is:

    DATEWORD([<date>])

    Required Parameters

    None

    Optional Parameter

    <date> is the date to be converted.  Please note that this can be
    either a date-type variable OR a character string in the proper
    format.

    If no parameter is passed, DATEWORD() will assume the system date.

    Return Value

    DATEWORD() returns a character string suitable for use in letters
    and reports.

    Clipper 5.0 Notes

    DATEWORD() takes its cue from the current DATE format.  This allows
    it to return a string of either MM/DD/YY or DD/MM/YY format.  Plus,
    it will automatically use German and French months if either of those
    date formats is being used.  Please refer to the GFMONTH() discussion
    for further specifics.

    Sample usage

    SET DEVICE TO PRINT                      
    @ 6,10 SAY DATEWORD()                    
    @ 9,10 SAY TRIM(fname) + ' ' + lname     
    @10,10 SAY address                       
    @11,10 SAY TRIM(city)+', '+state+'  '+zip

    ? DATEWORD('12/25/88')

    start_date = CTOD('05/01/81')
    ? DATEWORD(start_date)       

See Also: GFMONTH()

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