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:
Target is null. Method called: _periodbetween::
Can someone bring me some light??
Thanks in advance.