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


Syntax:        L_DMYSTR(<expD>,<expN>)


Purpose:       To convert a Clipper date to a user friendly format.


Arguments:     <expD> is the date to be converted into a suitable
               format.

               <expN> selects the output format of the date
               <expN> = 1   -  Dec 25, 1989
               <expN> = 2   -  25 Dec 1989
               <expN> = 3   -  Dec 25th 1989
               <expN> = 4   -  25th Dec 1989
               <expN> = 5   -  Mon Dec 25, 1989
               <expN> = 6   -  Mon 25 Dec 1989
               <expN> = 7   -  December 25, 1989
               <expN> = 8   -  25 December 1989
               <expN> = 9   -  December 25th 1989
               <expN> = 10  -  25th December 1989
               <expN> = 11  -  Monday December 25th 1989
               <expN> = 12  -  Monday 25th December 1989
               <expN> = 13  -  Dec 25th
               <expN> = 14  -  25th Dec
               <expN> = 15  -  December 25th
               <expN> = 16  -  25th December
               <expN> = 17  -  Dec-25-1989
               <expN> = 18  -  25-Dec-1989
               <expN> = 19  -  December 1989
               <expN> = 20  -  Dec 1989


Returns:       A character string in the chosen format



Usage:         For displaying and printing user-friendly dates.


Examples:      date_var = CTOD("25/12/89")
               ? L_DMYSTR(date_var,18)          && Result: 25-Dec-1989


Notes:         This function works irrespective of the status of SET DATE.


Language:      Clipper

See Also: L_CMONTHN() L_DAYTOS()

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