Date Capture Type

Discussions about CSEntry
Post Reply
PHINOJOSA
Posts: 45
Joined: April 16th, 2023, 10:31 pm

Date Capture Type

Post by PHINOJOSA »

Hello

I am using Date Capture Type, on a mobile (Andoird).
DATE_01.png
DATE_01.png (23.52 KiB) Viewed 710 times
But when I get to the field to select the date, the date that appears by default is (12/31/2100), I would like the default date to be that of day on which the interview takes place and so it can be changed more easily if the date you want to enter was yesterday.
DATE_02.jpeg
DATE_02.jpeg (14.6 KiB) Viewed 710 times
The variable is numerical and this is its configuration
DATE_03.png
DATE_03.png (11.4 KiB) Viewed 710 times
I hope you can help me with this setback I had in my application development.

Thank you so much
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Date Capture Type

Post by Gregory Martin »

You can set it in the preproc, like this:
PROC E120

preproc

   
// if the date has not been previously assigned, set it to today's date
   
if visualvalue(E120) = notappl then
       
E120 = sysdate("DDMMYYYY");
    endif;
PHINOJOSA
Posts: 45
Joined: April 16th, 2023, 10:31 pm

Re: Date Capture Type

Post by PHINOJOSA »

Good morning

Thank you very much for the support, this turned out great.

Greetings
Post Reply