Hi folks,
I need to filter some questionaires, skipping (skip case) the ones with a field date below a certain date I would enter during execution time, like an accept, or a prompt,
The field type "date" exists in a form, but not in batch mode.
Best
Ari
accepting (or prompting) a date
-
- Posts: 1860
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: accepting (or prompting) a date
Can you just use prompt and give the user a format to enter the date. Something like:
numeric date;
while not datevalid(date) do
string text_date = prompt("Enter a date in the format: YYYY-MM-DD");
date = tonumber(replace(text_date, "-", ""));
enddo;
while not datevalid(date) do
string text_date = prompt("Enter a date in the format: YYYY-MM-DD");
date = tonumber(replace(text_date, "-", ""));
enddo;
Re: accepting (or prompting) a date
Sure, that's what I´m doing now.
I was just thinking about using some kind of a calendar date format, as in the form.
Best
Ari
I was just thinking about using some kind of a calendar date format, as in the form.
Best
Ari
Best
Ari
Ari