Descartex Well-Known Member Licensed User Longtime User Jun 19, 2017 #1 Hi. When I try to run this: Code: Copy Dim MonthsToShow As Int Log(DateUtils.PeriodBetween(DateTime.DateParse(ToDate),DateTime.DateParse(FromDate)).Months) MonthsToShow=DateUtils.PeriodBetween(DateTime.DateParse(FromDate),DateTime.DateParse(ToDate)).Months+1 Having on FromDate and ToDate an string with the format "MM/dd/yyy" it raises this: Spoiler: Error Target is null. Method called: _periodbetween:: Can someone bring me some light?? Thanks in advance.
Hi. When I try to run this: Code: Copy Dim MonthsToShow As Int Log(DateUtils.PeriodBetween(DateTime.DateParse(ToDate),DateTime.DateParse(FromDate)).Months) MonthsToShow=DateUtils.PeriodBetween(DateTime.DateParse(FromDate),DateTime.DateParse(ToDate)).Months+1 Having on FromDate and ToDate an string with the format "MM/dd/yyy" it raises this: Spoiler: Error Target is null. Method called: _periodbetween:: Can someone bring me some light?? Thanks in advance.
Erel B4X founder Staff member Licensed User Longtime User Jun 20, 2017 #2 Can you upload the project (File - Export as zip)? Upvote 0
Descartex Well-Known Member Licensed User Longtime User Jun 20, 2017 #3 I've sent you an email. Thanks a lot. Upvote 0
Descartex Well-Known Member Licensed User Longtime User Jun 20, 2017 #4 I've downloaded again de DateUtils Module and it worked at first time... Must be something wrong on the version I got. Thanks. Upvote 0
I've downloaded again de DateUtils Module and it worked at first time... Must be something wrong on the version I got. Thanks.