[web2py] Re: Difference of two date field in years

2016-12-11 Thread Brian M
Like Anthony said, without seeing your code we can't help. What exactly do you mean by "is not able to recognize date fields as date"? As an alternative to dateutil you could also look into the Pendulum package (https://pendulum.eustace.io/) which makes playing with dates even easier. On Frida

[web2py] Re: Difference of two date field in years

2016-12-09 Thread Dave S
On Friday, December 9, 2016 at 8:31:37 AM UTC-8, Amit Kumar Modak wrote: > > How to get the difference of two date field in years. > dateutil.relativedelta.relativedelta is not working as it is not able to > recognise date fields as date. > > > datetime.timedelta ? https://docs.python.org/2/lib

[web2py] Re: Difference of two date field in years

2016-12-09 Thread Anthony
On Friday, December 9, 2016 at 11:31:37 AM UTC-5, Amit Kumar Modak wrote: > > How to get the difference of two date field in years. > dateutil.relativedelta.relativedelta is not working as it is not able to > recognise date fields as date. > Always show your code. -- Resources: - http://web2py.