cjbrown815
IS-IT--Management
Hello,
I have a report that calcualtes the difference between 2 date fields. SAMPLE.DATE1 and SAMPLE.DATE3. Some of our other products do not use the SAMPLE.DATE1 field but instead go by the julian date that is part of the Quality_Code {SAMPLE.TEXT3}string. So I need to take the first 3 numbers of the Quality_Code, figure out where that falls on the calendar and then calculate the difference between that date and the SAMPLE.DATE1.
Current Formula
datetimevar d1:={SAMPLE.DATE3};
datetimevar d2:={SAMPLE.DATE1};
totext(Datediff("n",d2,d1)/60 /24,0,"") & " days"
Quality_Code {SAMPLE.TEXT3} examples
189-08
203-07
The quality code is: julian date-YY
Is this even possible?
thanks,
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931
I have a report that calcualtes the difference between 2 date fields. SAMPLE.DATE1 and SAMPLE.DATE3. Some of our other products do not use the SAMPLE.DATE1 field but instead go by the julian date that is part of the Quality_Code {SAMPLE.TEXT3}string. So I need to take the first 3 numbers of the Quality_Code, figure out where that falls on the calendar and then calculate the difference between that date and the SAMPLE.DATE1.
Current Formula
datetimevar d1:={SAMPLE.DATE3};
datetimevar d2:={SAMPLE.DATE1};
totext(Datediff("n",d2,d1)/60 /24,0,"") & " days"
Quality_Code {SAMPLE.TEXT3} examples
189-08
203-07
The quality code is: julian date-YY
Is this even possible?
thanks,
-CJ
SQL2005// CRXIr2// XP Pro
"Progress lies not in enhancing what is, but in advancing toward what will be"
-KHALIL GIBRAN 1883-1931