Date and Time Smart Control: Difference between revisions

From Hornbill
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:


Valid formats:
Valid formats:
In this case, the
<pre>
<pre>
Mar 25 2022
Mar 25 2022
Line 25: Line 23:




More possible date formats:
More flexible date formats:
<pre>
<pre>
today
today
Line 35: Line 33:
next Monday
next Monday
last Monday
last Monday
previous Monday
</pre>
</pre>



Latest revision as of 09:58, 16 March 2022

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

Valid formats:

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 flexible date formats:

today
now
tomorrow
yesterday
next week
next year
next Monday
last Monday
previous 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