Editing date format

Hi,

I am using Commcare on android. I would like to ask mother’s their date of
birth however they often don’t remember the exact day, so I would like to
just ask them the year and month.

Using the ODK instructions I have tried changing the source XML under input
so that it just displays month and year, however it didnt work.

Please advise??

Many thanks

Natasha

Natasha,

Unfortunately we don’t support a native data type or entry method for a
"fuzzy" date.

You’ll have to ask for a numeric entry for the year, and probably use a
List Select for the month.

You can the construct a date in a calculate node by concatenating the
relevant quantities.

IE:

date(concat(/data/year, ‘-’, /data/month, ‘-01’))

-Clayton

··· On Mon, Sep 9, 2013 at 11:19 AM, Natasha Lelijveld < natasha.lelijveld@gmail.com> wrote:

Hi,

I am using Commcare on android. I would like to ask mother’s their date of
birth however they often don’t remember the exact day, so I would like to
just ask them the year and month.

Using the ODK instructions I have tried changing the source XML under
input so that it just displays month and year, however it didnt work.

Please advise??

Many thanks

Natasha


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