Date

Dear All,

I want to add 20 days with a specific date.

Say from a questing the answer is 1/08/2014 then the next screen will
show automatically date 21/08/2014.

Please help me.

Thanks,

Arif

Arif,

I don't think there is a good way of doing this.
https://groups.google.com/d/msg/opendatakit/um9g921Qu1c/nHjlkM2rVFEJ

My guess is that it shouldn't be hard to add to the core. Code
contributions are welcome.

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, Sep 7, 2014 at 7:57 AM, ARIF AZAD KHAN arifazadkhan@gmail.com wrote:

Dear All,

I want to add 20 days with a specific date.

Say from a questing the answer is 1/08/2014 then the next screen will show
automatically date 21/08/2014.

Please help me.

Thanks,

Arif

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Arif,

You can try with this : calculate="date(/data/1stDate + 20)".

Best,

Mashiur Rahman Tito
Research & Analytics Associate
mPower Social Enterprises Limited

1 Like

Thanks for sending this. Just tried it and it works great!

Yaw

ยทยทยท -- Need ODK services? http://nafundi.com provides form design, server setup, professional support, and software development for ODK.

On Sun, Sep 7, 2014 at 10:37 PM, tito@mpower-health.com wrote:

Arif,

You can try with this : calculate="date(/data/1stDate + 20)".

Best,

Mashiur Rahman Tito
Research & Analytics Associate
mPower Social Enterprises Limited

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

I believe date arithmetic works, as indicated above.

The problem is with date-times, time zones, and preserving hour-of-the-day
values, and interpreting the date portion of a date-time with respect to
local time zone.

Those are all badly broken.

ยทยทยท On Tue, Sep 9, 2014 at 12:23 AM, Yaw Anokwa wrote:

Thanks for sending this. Just tried it and it works great!

Yaw

Need ODK services? http://nafundi.com provides form design, server
setup, professional support, and software development for ODK.

On Sun, Sep 7, 2014 at 10:37 PM, tito@mpower-health.com wrote:

Arif,

You can try with this : calculate="date(/data/1stDate + 20)".

Best,

Mashiur Rahman Tito
Research & Analytics Associate
mPower Social Enterprises Limited

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google
Groups "ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to the Google Groups
"ODK Community" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com