Date format on case list and detail

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list (YYYY/MM/DD)
versus (DD/MM/YYYY). Hopefully the answer to the first question will allow
me to to change both to my desired output above.

Many thanks

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail configuration
    when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

··· On Jan 15, 2017 04:20, "William Elson" wrote:

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list (YYYY/MM/DD)
versus (DD/MM/YYYY). Hopefully the answer to the first question will allow
me to to change both to my desired output above.

Many thanks

--
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/d/optout.

hello Derek,
I am Adittya Singh Tomar working in UNFPA Rajasthan . i was met with you in
UP India Manthan Project Intra Health International. Inc at Bahraich. i
need you for support to IT Program at Rajasthan. My Boss want to meet you
, Can you provided you contract number and email Id.
with regards
Aditya

··· On Sun, Jan 15, 2017 at 4:20 AM, William Elson wrote:

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list (YYYY/MM/DD)
versus (DD/MM/YYYY). Hopefully the answer to the first question will allow
me to to change both to my desired output above.

Many thanks

--
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/d/optout.

--

*Best wishes & Regards *

Sincerely yours,

  • Aditya Singh Tomar*

Contact No. +91-9928482284/9412761597.

*E-mail ID: *Aditya.singh736@gmail.com/adityasin@rediffmail.com
<Aditya.singh736@gmail.com/adityasin@rediffmail.com>

Skype account: - adityalucknow

LinkedIn:- Aditya Singh Tomar

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display
  • Return: Returns a string conversion of the provided date.
  • *Arguments: * the date to be converted, and a string describing how it
    should be formatted. The syntax for the display format string is below
  • ‘%Y’ = year
    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's current
      language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)
  • *Example: * When you are displaying a date in the display text, its
    useful to format it in a manner that is readable for your end users (the
    default is YYYY-MM-DD). Some examples
  • format-date(date(/data/my_date), "%e/%n/%y") will return a date that
    looks like D/M/YY
    • format-date(date(/data/my_date), "%a, %e %b %Y") will return a date
      that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the current
      date and time in the format YY/M/D - HH:MM:SS
··· -
  format-date(now(), '%H:%M:%S') will return the current time in the 
  format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail configuration
    when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" <willia...@gmail.com <javascript:>> wrote:

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/d/optout.

Hi,

Can somebody help me, about calendar use? I want to use local
calendar(Nepali) in my form like DoB, because it will be easy to form fill
up. Interviewers want to easy way. Respondents give the answer DoB and Age
in Local calendar base.
Please share me.

Sanu K Ghalan
Nepal

··· On Tue, Jan 17, 2017 at 9:38 PM, William Elson wrote:

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display

  • Return: Returns a string conversion of the provided date.

  • *Arguments: * the date to be converted, and a string describing how
    it should be formatted. The syntax for the display format string is below

  • ‘%Y’ = year

    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's current
      language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)

  • *Example: * When you are displaying a date in the display text, its
    useful to format it in a manner that is readable for your end users (the
    default is YYYY-MM-DD). Some examples

  • format-date(date(/data/my_date), "%e/%n/%y") will return a date that
    looks like D/M/YY

    • format-date(date(/data/my_date), "%a, %e %b %Y") will return a
      date that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the current
      date and time in the format YY/M/D - HH:MM:SS

    format-date(now(), '%H:%M:%S') will return the current time in the
    format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail configuration
    when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" willia...@gmail.com wrote:

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

Hi Sanu,
I've used that function in one of my own forms, it's pretty
straightforward, the wiki page is here
https://confluence.dimagi.com/display/commcarepublic/Alternate+Calendar+Formats+for+CommCare+Android,
but do remember that the data will be stored in Gregorian format so if you
display it later you'll need to be sure to set the appearance to Nepali
again.

Best Regards,

Derek

··· On Wed, Jan 25, 2017 at 10:05 AM, Sanu Ghalan < ghalan100shadhikhola@gmail.com> wrote:

Hi,

Can somebody help me, about calendar use? I want to use local
calendar(Nepali) in my form like DoB, because it will be easy to form fill
up. Interviewers want to easy way. Respondents give the answer DoB and Age
in Local calendar base.
Please share me.

Sanu K Ghalan
Nepal

On Tue, Jan 17, 2017 at 9:38 PM, William Elson william.elson@gmail.com wrote:

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display

  • Return: Returns a string conversion of the provided date.

  • *Arguments: * the date to be converted, and a string describing how
    it should be formatted. The syntax for the display format string is below

  • ‘%Y’ = year

    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's current
      language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)

  • *Example: * When you are displaying a date in the display text, its
    useful to format it in a manner that is readable for your end users (the
    default is YYYY-MM-DD). Some examples

  • format-date(date(/data/my_date), "%e/%n/%y") will return a date
    that looks like D/M/YY

    • format-date(date(/data/my_date), "%a, %e %b %Y") will return a
      date that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the
      current date and time in the format YY/M/D - HH:MM:SS

    format-date(now(), '%H:%M:%S') will return the current time in the
    format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail
    configuration when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" willia...@gmail.com wrote:

Can somebody tell me how I change the way the date is formatted for the
case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

--
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/d/optout.

--
Derek Lane
Dimagi India | Field Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
m: +91 959 933 2445

Hi, Derek Lane

Thanks for your solution tips for me.. I'm working on this now.

thanks once again

Best Regards
Sanu

··· On Wed, Jan 25, 2017 at 11:38 AM, Derek Lane wrote:

Hi Sanu,
I've used that function in one of my own forms, it's pretty
straightforward, the wiki page is here
https://confluence.dimagi.com/display/commcarepublic/Alternate+Calendar+Formats+for+CommCare+Android,
but do remember that the data will be stored in Gregorian format so if you
display it later you'll need to be sure to set the appearance to Nepali
again.

Best Regards,

Derek

On Wed, Jan 25, 2017 at 10:05 AM, Sanu Ghalan <ghalan100shadhikhola@gmail. com> wrote:

Hi,

Can somebody help me, about calendar use? I want to use local
calendar(Nepali) in my form like DoB, because it will be easy to form fill
up. Interviewers want to easy way. Respondents give the answer DoB and Age
in Local calendar base.
Please share me.

Sanu K Ghalan
Nepal

On Tue, Jan 17, 2017 at 9:38 PM, William Elson william.elson@gmail.com wrote:

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display

  • Return: Returns a string conversion of the provided date.

  • *Arguments: * the date to be converted, and a string describing
    how it should be formatted. The syntax for the display format string is
    below

  • ‘%Y’ = year

    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's
      current language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)

  • *Example: * When you are displaying a date in the display text,
    its useful to format it in a manner that is readable for your end users
    (the default is YYYY-MM-DD). Some examples

  • format-date(date(/data/my_date), "%e/%n/%y") will return a date
    that looks like D/M/YY

    • format-date(date(/data/my_date), "%a, %e %b %Y") will return a
      date that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the
      current date and time in the format YY/M/D - HH:MM:SS

    format-date(now(), '%H:%M:%S') will return the current time in
    the format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail
    configuration when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" willia...@gmail.com wrote:

Can somebody tell me how I change the way the date is formatted for
the case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

--
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/d/optout.

--
Derek Lane
Dimagi India | Field Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
m: +91 959 933 2445
www.dimagi.com

--
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/d/optout.

Hello,
Please! help me to solve 'skipping/display condition. My problem is hereby:
Suppose, there is question number 10 Which is multiple choice question, the
choice values are serially from 1 to 11. The problem is that if I choose
value 10 then it should be jump to question no. 12 and otherwise 11.
Please share me the simple example.

Thank you

··· On Wed, Jan 25, 2017 at 11:48 AM, Sanu Ghalan < ghalan100shadhikhola@gmail.com> wrote:

Hi, Derek Lane

Thanks for your solution tips for me.. I'm working on this now.

thanks once again

Best Regards
Sanu

On Wed, Jan 25, 2017 at 11:38 AM, Derek Lane dlane@dimagi.com wrote:

Hi Sanu,
I've used that function in one of my own forms, it's pretty
straightforward, the wiki page is here
https://confluence.dimagi.com/display/commcarepublic/Alternate+Calendar+Formats+for+CommCare+Android,
but do remember that the data will be stored in Gregorian format so if you
display it later you'll need to be sure to set the appearance to Nepali
again.

Best Regards,

Derek

On Wed, Jan 25, 2017 at 10:05 AM, Sanu Ghalan < ghalan100shadhikhola@gmail.com> wrote:

Hi,

Can somebody help me, about calendar use? I want to use local
calendar(Nepali) in my form like DoB, because it will be easy to form fill
up. Interviewers want to easy way. Respondents give the answer DoB and Age
in Local calendar base.
Please share me.

Sanu K Ghalan
Nepal

On Tue, Jan 17, 2017 at 9:38 PM, William Elson william.elson@gmail.com wrote:

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display

  • Return: Returns a string conversion of the provided date.

  • *Arguments: * the date to be converted, and a string describing
    how it should be formatted. The syntax for the display format string is
    below

  • ‘%Y’ = year

    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's
      current language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)

  • *Example: * When you are displaying a date in the display text,
    its useful to format it in a manner that is readable for your end users
    (the default is YYYY-MM-DD). Some examples

  • format-date(date(/data/my_date), "%e/%n/%y") will return a date
    that looks like D/M/YY

    • format-date(date(/data/my_date), "%a, %e %b %Y") will return a
      date that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the
      current date and time in the format YY/M/D - HH:MM:SS

    format-date(now(), '%H:%M:%S') will return the current time in
    the format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail
    configuration when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" willia...@gmail.com wrote:

Can somebody tell me how I change the way the date is formatted for
the case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

--
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/d/optout.

--
Derek Lane
Dimagi India | Field Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
m: +91 959 933 2445 <+91%2095993%2032445>
www.dimagi.com

--
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/d/optout.

Hi Sanu,

Have you read about using Display Conditions
https://confluence.dimagi.com/display/commcarepublic/Display+Conditions+Overview
in
the CommCare form builder?

Generally speaking the way to build the logic you are describing is to set
the display condition for Question 11 to be "not(#form/question10 = '10')"

-Clayton

··· On Fri, Mar 31, 2017 at 4:25 AM, Sanu Ghalan <ghalan100shadhikhola@gmail.com wrote:

Hello,
Please! help me to solve 'skipping/display condition. My problem is
hereby: Suppose, there is question number 10 Which is multiple choice
question, the choice values are serially from 1 to 11. The problem is that
if I choose value 10 then it should be jump to question no. 12 and
otherwise 11. Please share me the simple example.

Thank you

On Wed, Jan 25, 2017 at 11:48 AM, Sanu Ghalan <ghalan100shadhikhola@gmail. com> wrote:

Hi, Derek Lane

Thanks for your solution tips for me.. I'm working on this now.

thanks once again

Best Regards
Sanu

On Wed, Jan 25, 2017 at 11:38 AM, Derek Lane dlane@dimagi.com wrote:

Hi Sanu,
I've used that function in one of my own forms, it's pretty
straightforward, the wiki page is here
https://confluence.dimagi.com/display/commcarepublic/Alternate+Calendar+Formats+for+CommCare+Android,
but do remember that the data will be stored in Gregorian format so if you
display it later you'll need to be sure to set the appearance to Nepali
again.

Best Regards,

Derek

On Wed, Jan 25, 2017 at 10:05 AM, Sanu Ghalan < ghalan100shadhikhola@gmail.com> wrote:

Hi,

Can somebody help me, about calendar use? I want to use local
calendar(Nepali) in my form like DoB, because it will be easy to form fill
up. Interviewers want to easy way. Respondents give the answer DoB and Age
in Local calendar base.
Please share me.

Sanu K Ghalan
Nepal

On Tue, Jan 17, 2017 at 9:38 PM, William Elson <william.elson@gmail.com wrote:

Thanks Sheel for you suggestion.

The solution is actually:

Use a selected date e.g. DOB and create a subsequent hidden value and
format according to the following rules. Very helpful to avoid confusion
with american v british date formats

format-date

  • *Behavior: *Will change the format of a date for display

  • Return: Returns a string conversion of the provided date.

  • *Arguments: * the date to be converted, and a string describing
    how it should be formatted. The syntax for the display format string is
    below

  • ‘%Y’ = year

    • ‘%y’ = 2 digit year
    • ‘%m’ = 0-padded month
    • ‘%n’ = numeric month
    • ‘%b’ = short text month (Jan, Feb, etc)
    • ‘%d’ = 0-padded day of month
    • ‘%e’ = day of month
    • ‘%H’ = 0-padded hour (24 hour time)
    • ‘%h’ = hour (24 hour time)
    • ‘%M’ = 0-padded minutes
    • ‘%S’ = 0-padded second
    • ‘%3’ = 0-padded milliseconds
    • ‘%a’ = three letter short text day (Sun, Mon, etc)
    • 'short' = the date will be formatted based on the user's
      current language and phone settings
    • 'nepali' = displays the date in the Nepali calendar
  • Syntax: format-date(date_to_convert, display_format_string)

  • *Example: * When you are displaying a date in the display text,
    its useful to format it in a manner that is readable for your end users
    (the default is YYYY-MM-DD). Some examples

  • format-date(date(/data/my_date), "%e/%n/%y") will return a date
    that looks like D/M/YY

    • format-date(date(/data/my_date), "%a, %e %b %Y") will return
      a date that looks like Sun, 7 Apr 2012.
    • format-date(now(), '%y/%n/%e - %H:%M:%S') will return the
      current date and time in the format YY/M/D - HH:MM:SS

    format-date(now(), '%H:%M:%S') will return the current time in
    the format HH:MM:SS

On Sunday, 15 January 2017 22:40:49 UTC-5, Sheel Shah wrote:

Hi,

There are two things you should do:

  • Set the format to "Date" in the case list and case detail
    configuration when building your app
  • Set the Android tablet's date format in the Android settings menu

Thanks
Sheel

On Jan 15, 2017 04:20, "William Elson" willia...@gmail.com wrote:

Can somebody tell me how I change the way the date is formatted for
the case list and case detail on an android tablet? Would like for example
10-Sep-2000 rather than 10/09/00.

Second point is that the format is different in the case list
(YYYY/MM/DD) versus (DD/MM/YYYY). Hopefully the answer to the first
question will allow me to to change both to my desired output above.

Many thanks

--
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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/d/optout.

--
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/d/optout.

--
Derek Lane
Dimagi India | Field Manager
D - 1/28 Vasant Vihar | New Delhi 110057, India
m: +91 959 933 2445 <+91%2095993%2032445>
www.dimagi.com

--
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/d/optout.

--
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/d/optout.