--- id: v2024-date-math title: DateMath pagination_label: DateMath sidebar_label: DateMath sidebar_class_name: powershellsdk keywords: ['powershell', 'PowerShell', 'sdk', 'DateMath', 'V2024DateMath'] slug: /tools/sdk/powershell/v2024/models/date-math tags: ['SDK', 'Software Development Kit', 'DateMath', 'V2024DateMath'] --- # DateMath ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Expression** | **String** | A string value of the date and time components to operation on, along with the math operations to execute. | [required] **RoundUp** | **Boolean** | A boolean value to indicate whether the transform should round up or down when a rounding `/` operation is defined in the expression. If not provided, the transform will default to `false` `true` indicates the transform should round up (i.e., truncate the fractional date/time component indicated and then add one unit of that component) `false` indicates the transform should round down (i.e., truncate the fractional date/time component indicated) | [optional] [default to $false] **RequiresPeriodicRefresh** | **Boolean** | A value that indicates whether the transform logic should be re-evaluated every evening as part of the identity refresh process | [optional] [default to $false] **VarInput** | [**map[string]AnyType**]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4 | This is an optional attribute that can explicitly define the input data which will be fed into the transform logic. If input is not provided, the transform will take its input from the source and attribute combination configured via the UI. | [optional] ## Examples - Prepare the resource ```powershell $DateMath = Initialize-V2024DateMath -Expression now+1w ` -RoundUp false ` -RequiresPeriodicRefresh false ` -VarInput {type=accountAttribute, attributes={attributeName=first_name, sourceName=Source}} ``` - Convert the resource to JSON ```powershell $DateMath | ConvertTo-JSON ``` [[Back to top]](#)