Subj : WHICH ??? To : Klaus Meinhard From : Gerald Miller Date : Tue Dec 18 2001 09:34 am Hello Klaus, Sunday December 16 2001 16:52, Klaus Meinhard wrote to me: >> which does nothing to indicate whether the date format is ISO or KM> a time-honoured form of determining the date base format in 4DOS KM> follows the idea of KM> if %@date[01.02.03] eq 8432 echo Format is dd-mm-yy KM> if %@date[01.02.03] eq 8402 echo Format is mm-dd-yy KM> if %@date[01.02.03] eq 7704 echo Format is yy-mm-dd Thank you, this works for me..... KM> You can always adjust a 2- to a 4-digit year by KM> set nyear=%@year[%1] KM> set nyear=%@if[%nyear lt 80,20%nyear,19%nyear] KM> set ndate=%@month[%1]-%day[%1]-%nyear KM> or something similar. Keep in mind that without special tools 4DOS, KM> like DOS, can handle only dates between 1980 and 2079 (?) or so. Shortly after I made my inquiry, Steve reposted his WHICH.BTM to ddunfee@citynet.com and he had a solution that took care of the non-ISO date format dilemma - very nicely handled. Thanks again ... Gerald --- GoldED+/386 1.1.5-1216 * Origin: Assembler Command: RRRL; Random Rotate Register Left. (1:342/512) .