Date Calculator Lightning Component
Use the handy date calculator to quickly add/count days and get the week number for a selected date.
The Salesforce Administrator typically changes the layouts for these pages and adds the component in a desired location.
- To add or subtract date, click on the Add Days tab. Enter the appropriate values in the Years, Months, Weeks, and Days fields. Select the Add or Subtract action and click the Calculate New Date button. The New Date field will then show the resulting date and time value.
- To count the duration between two dates, select the Count Days tab. Enter the appropriate values in the Start Date and End Date fields. Click the Calculate Duration button. The Duration field will then show the resulting value.
- To find the week number for a date, select the Week Number tab. Click on a date. The week number is then instantly shown. Note that the calendar is based on ISO 8601 date and time format.