Page 1 of 1

Date Capture Type

Posted: March 20th, 2024, 2:53 pm
by PHINOJOSA
Hello

I am using Date Capture Type, on a mobile (Andoird).
DATE_01.png
DATE_01.png (23.52 KiB) Viewed 3084 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 3084 times
The variable is numerical and this is its configuration
DATE_03.png
DATE_03.png (11.4 KiB) Viewed 3084 times
I hope you can help me with this setback I had in my application development.

Thank you so much

Re: Date Capture Type

Posted: March 21st, 2024, 9:11 am
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;

Re: Date Capture Type

Posted: March 21st, 2024, 10:45 am
by PHINOJOSA
Good morning

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

Greetings