SAC Custom Widget to get date,month, week, quarter, day from date
To use this widget in your SAP application, follow these steps:
- Download the
QuickDateWidget.jsonfile from the URLs specified in the webcomponents property of the JSON. - Go to your SAC Portal, select Analytic Application from the left side bar, and then go to the Custom Widget tab.
- Click on the + icon on the right side and select the
QuickDateWidget.jsonfile that you downloaded. - You're done! You can now use it in your app.
The widget has the following methods:
| Method | Parameter Type | Description |
|---|---|---|
| setDate(date) | string | Set Enter Date |
| setBoxcolor(boxcolor) | string | Set Color of Box |
| Method | Return Type | Description |
|---|---|---|
| getDate() | string | return Enter Date |
| getYear() | string | return Year of date |
| getMonth() | string | return Month of date |
| getQuarter() | string | return Quarter of date |
| getDay() | string | return Day of date |
| getWeek() | string | return Week of date |
| getDateof() | string | return Date Day of Date |
| getBoxcolor() | string | return Color of Box |
This widget is developed by Rohit Chouhan

