× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Jaime,

what do you need a numeric date, a character date or a date date?
If you need a date, define a date field and use %Date() Built-in-Function to
get the system date.
If you need numeric or character date, define a date field too and covert it
after using Built-in-Functions %Char(), %Dec()/%Int().

D DateIso         S               D   
D DateNum         S              8P  0
D DateChar        S             10A
 /Free
   DateIso  = %Date();
   DateChar = %Char(DateIso: *Eur);
   DateChar = %Char(%Date(): *Eur);
   DateNum  = %Int(DateChar);
   DateNum  = %Int(%Char(DateIso: *Eur);
 /End-Free

Date fields can be intitalized with system date. But be aware, the
initialization only takes place the first call.
D DateIso         S               D     inz(*Sys)

Birgitta


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.