× 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 I have to compare 2 dates. From the file the format is 6 00 S,
yymmdd. 

Your problem is that these are not date fields.  They are numbers - you just
_treat_ them as dates!  Date math will only work on a real date.  If you
only need to compare the dates then you can simply use the date BIFs to
convert etc.  I don't know what type of comparison you want to do but this
will give you the idea:

If %date(numDate1: *YMD) > ( %date() - %Days(60) );

%date with no parms returns the current system date.

Don't bother with creating real dates unless you need them for other
purposes (i.e. don't use %date multiple times with the same field).  Also
stay away from the deprecated MOVE op-code - one day you'll want to go
free-form.

Jon Paris
Partner400

www.Partner400.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.