Hi!
Given a Start Date and an End Date, of the format MMM D, YYYY, HHHH - A Month, Day, Year, and a 4 digit 24 Hour Time, I then need to calculate the difference in Hours between the two dates?
So given dates like JUL 11, 2010, 1200 and July 12, 2010, 1400 it should return 26 as the # of hours elapsed.
I can calculate the numbre of full days, given this small FormCalc Script - but I think I'm in over my head with trying to figure the number of hours...
if (DateStart.rawValue ne null & DateEnd.rawValue ne null)then
(Abs(Date2Num(DateStart.formattedValue, DateFmt(2)) - Date2Num(DateEnd.formattedValue, DateFmt(2)))*24)
else
$.rawValue = ""
endif
George Kaiser