iOS Question DateUtils Issue [Solved]

Descartex

Well-Known Member
Licensed User
Longtime User
Hi.
When I try to run this:
B4X:
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.
 

Descartex

Well-Known Member
Licensed User
Longtime User
I've sent you an email.
Thanks a lot.
 
Upvote 0

Descartex

Well-Known Member
Licensed User
Longtime User
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
Top