Difference between revisions of "Date and Time Smart Control"

From Hornbill
Jump to navigation Jump to search
(Created page with "This control allows typing the date and/or time and selecting the date form a calendar control.")
 
Line 1: Line 1:
 
This control allows typing the date and/or time and selecting the date form a calendar control.
 
This control allows typing the date and/or time and selecting the date form a calendar control.
 +
 +
Valid formats:
 +
 +
In this case, the
 +
<pre>
 +
Mar 25 2022
 +
25/3/2022
 +
25-03-2022
 +
</pre>
 +
 +
 +
In this case the data is clear enough to asume the first digit is the month and the second is the day
 +
<pre>
 +
3/25/2022
 +
25/3/2022
 +
</pre>
 +
 +
 +
However in more generic situations such this:
 +
<pre>
 +
3/3/2022
 +
</pre>
 +
The user's profile date format setting will dictate what comes first.
 +
 +
 +
More possible date formats:
 +
<pre>
 +
today
 +
now
 +
tomorrow
 +
yesterday
 +
next week
 +
next year
 +
next Monday
 +
last Monday
 +
</pre>
 +
 +
 +
Time format:
 +
<pre>
 +
22:30
 +
10:30pm
 +
10:30pm
 +
10pm
 +
</pre>
 +
 +
 +
Date and time can be used in combination if the control allows:
 +
<pre>
 +
today at 22:30
 +
today at 10:30pm
 +
next week at 10:30pm
 +
Mar 25 2022 10pm
 +
</pre>

Revision as of 09:56, 16 March 2022

This control allows typing the date and/or time and selecting the date form a calendar control.

Valid formats:

In this case, the

Mar 25 2022
25/3/2022
25-03-2022


In this case the data is clear enough to asume the first digit is the month and the second is the day

3/25/2022
25/3/2022


However in more generic situations such this:

3/3/2022

The user's profile date format setting will dictate what comes first.


More possible date formats:

today
now
tomorrow
yesterday
next week
next year
next Monday
last Monday


Time format:

22:30
10:30pm
10:30pm
10pm


Date and time can be used in combination if the control allows:

today at 22:30
today at 10:30pm
next week at 10:30pm
Mar 25 2022 10pm