✅ You are viewing documentation for the latest version of Compose SDK.
Version:
# Function today
today(
dimension
,config
?):Filter
Creates a filter to isolate items with a date dimension value of the current date.
# Parameters
Parameter | Type | Description |
---|---|---|
dimension | DateDimension | date dimension to filter |
config ? | BaseFilterConfig | Optional configuration for the filter |
# Returns
A filter instance
# Example
Filter for items where the date is today in the Sample ECommerce data model.
filterFactory.today(DM.Commerce.Date)