Jeremiah31
Programmer
I have a date column in Excel where some of the row values have null values.
I'm using Crystal reports XI. When I apply this code to find the number of days between two dates, I receive an error message with column {Sheet1_.StoreCheckIn} being a Bad Date formate String. I open the excel sheet and made sure the column is formated as a short date value. I think the error is caused by the null values. Can someone help me out?
Local DateTimeVar d1 := CDATE(TOTEXT({Sheet1_.AtStore}));
Local DateTimeVar d2 := CDATE({Sheet1_.StoreCheckIn});
DateDiff ("d", d1, d2)
I'm using Crystal reports XI. When I apply this code to find the number of days between two dates, I receive an error message with column {Sheet1_.StoreCheckIn} being a Bad Date formate String. I open the excel sheet and made sure the column is formated as a short date value. I think the error is caused by the null values. Can someone help me out?
Local DateTimeVar d1 := CDATE(TOTEXT({Sheet1_.AtStore}));
Local DateTimeVar d2 := CDATE({Sheet1_.StoreCheckIn});
DateDiff ("d", d1, d2)