Improve Date Picker by "Ago" option

Description

Issue: The date picker is not flexible enough when returning an exact time unit from the past (e.g. select April of last year). The Quick option is limited, the Between option is not practical.

Improvement: Add a new “Ago“ option to the date picker.

UI: The user will be able to select 2 values: offset and time unit

Date selection logic: the “Ago“ option would return the date interval from the past (defined by the selected offset-unit combination) in the length of the selected time unit.

Examples (current date is 2023-04-20):

  • offset: 1; unit: year = 2022-01-01 - 2022-12-31 (go back 1 year, select the whole year)

  • offset: 2; unit: year = 2021-01-01 - 2021-12-31 (go back 2 years, select the whole year)

  • offset: 12; unit: month = 2022-04-01 - 2023-04-30 (go back 12 months, select the whole month)

  • offset: 7; unit: day = 2023-04-13 - 2023-04-13 (go back 7 days, select the whole day)

Note: the user would be limited to select only one time unit (no option to select e.g. go back 1 year, select the whole month) - it would require to add a second unit selection list, but in our opinion that would make the Ago option too complex and confusing for the most of the users. In the future there could be implemented the option to customise the date picker for the exact needs of the tenants/roles/users depending on how advanced date selection is needed.

Environment

None

Attachments

1

Activity

Peter Takacs 
July 11, 2023 at 2:39 PM

Documentation updated:

Heng Sin Low 
April 21, 2023 at 6:44 AM

Hi , thanks, looks good.

Peter Takacs 
April 21, 2023 at 6:12 AM

Hi , ok I’ve recorded a short video:

Heng Sin Low 
April 21, 2023 at 2:16 AM

hi , a screenshot or video will works better than text for such UI enhancements.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created April 20, 2023 at 9:18 AM
Updated July 11, 2023 at 2:39 PM
Resolved July 11, 2023 at 2:39 PM