Do you have SAS? DATA _NULL_; date='1jun2005'd; jan1900='1jan1900'd; secsince=dhms(date,0,0,0)-dhms(jan1900,0,0,0); put secsince=;
will print secsince=3326572800 as the number of seconds since Jan 1, 1900. SAS datetimes are the number of seconds plus/minus its epoch of 1 Jan 1960, so the jan1900 seconds are negative, hence the subtraction to add them. Barry ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html