Difference between revisions of "Date and Time Smart Control"
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.") |
|||
(One intermediate revision by the same user not shown) | |||
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: | ||
+ | <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 flexible date formats: | ||
+ | <pre> | ||
+ | today | ||
+ | now | ||
+ | tomorrow | ||
+ | yesterday | ||
+ | next week | ||
+ | next year | ||
+ | next Monday | ||
+ | last Monday | ||
+ | previous 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> |
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