Date Capture Type

Discussions about CSEntry
Post Reply
PHINOJOSA
Posts: 58
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
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
The variable is numerical and this is its configuration
DATE_03.png
I hope you can help me with this setback I had in my application development.

Thank you so much
You do not have the required permissions to view the files attached to this post.
Gregory Martin
Posts: 1947
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: 58
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