Add date filter in an Excel worksheet
Contents
[
Hide
]
This REST API adds a date filter to an Excel worksheet.
REST API
PUT http://api.aspose.cloud/v3.0/cells/{name}/worksheets/{sheetName}/autoFilter/dateFilter
The request parameters are:
| Parameter Name | Type | Location | Description |
|---|---|---|---|
| name | string | Path | The workbook name. |
| sheetName | string | Path | The worksheet name. |
| range | string | Query | Cell range to which the filter is applied (e.g., A1:B1). |
| fieldIndex | integer | Query | Zero‑based index of the column to filter. |
| dateTimeGroupingType | string | Query | Grouping type for the date/time filter: Day, Hour, Minute, Month, Second, Year. |
| year | integer | Query | Year component of the filter value. |
| month | integer | Query | Month component of the filter value. |
| day | integer | Query | Day component of the filter value. |
| hour | integer | Query | Hour component of the filter value. |
| minute | integer | Query | Minute component of the filter value. |
| second | integer | Query | Second component of the filter value. |
| matchBlanks | string | Query | Include blank cells (true/false). |
| refresh | string | Query | Refresh the filter after applying (true/false). |
| folder | string | Query | Folder path of the original workbook. |
| storageName | string | Query | Name of the storage service. |
The OpenAPI Specification defines a publicly accessible programming interface and lets you perform REST interactions directly from a web browser.
You can use the cURL command‑line tool to access Aspose.Cells web services easily. The following example shows how to make a call to the Cloud API with cURL.
Cloud SDK Family
Using an SDK is the fastest way to develop. An SDK handles low‑level details so you can focus on your project tasks. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples demonstrate how to call Aspose.Cells web services using various SDKs: