Conversion to date format

Hi,

I am using a pre-populated data set and inputting a date of birth, the
values are in 'YYYY-MM-DD' format. I can see the display of the value after
reading from the data set, e.g. '2011-05-25'. But when I convert to date
format using command date(${field1}), the output field displays blank.

I want to compare the date field with today() so to count the number of
days.

Can anyone please suggest how to convert into date format.

Thanks,

Surajit

Hi Surajit,

Try the format-date() command described at
https://opendatakit.org/help/form-design/binding.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Wed, May 25, 2016 at 6:27 PM, Surajit sbbaruah@gmail.com wrote:

Hi,

I am using a pre-populated data set and inputting a date of birth, the
values are in 'YYYY-MM-DD' format. I can see the display of the value after
reading from the data set, e.g. '2011-05-25'. But when I convert to date
format using command date(${field1}), the output field displays blank.

I want to compare the date field with today() so to count the number of
days.

Can anyone please suggest how to convert into date format.

Thanks,

Surajit

--

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.

Hi Yaw,

Thank you.

Surajit

··· On Wednesday, June 1, 2016 at 5:18:36 AM UTC-4, Yaw Anokwa wrote: > > Hi Surajit, > > Try the format-date() command described at > https://opendatakit.org/help/form-design/binding. > > Yaw > -- > Need ODK consultants? Nafundi provides form design, server setup, > in-field training, and software development for ODK. Go to > https://nafundi.com to get started. > > On Wed, May 25, 2016 at 6:27 PM, Surajit <sbba...@gmail.com > wrote: > > Hi, > > > > I am using a pre-populated data set and inputting a date of birth, the > > values are in 'YYYY-MM-DD' format. I can see the display of the value > after > > reading from the data set, e.g. '2011-05-25'. But when I convert to date > > format using command date(${field1}), the output field displays blank. > > > > I want to compare the date field with today() so to count the number of > > days. > > > > Can anyone please suggest how to convert into date format. > > > > Thanks, > > > > Surajit > > > > -- > > -- > > Post: opend...@googlegroups.com > > Unsubscribe: opendatakit...@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...@googlegroups.com . > > For more options, visit https://groups.google.com/d/optout. >