FilterStateGetDateTime Method |
Retrieves a DateTime value from the filter state.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntaxpublic DateTime GetDateTime(
string name,
DateTime defaultValue = null
)
Parameters
- name
- Type: SystemString
The name associated with the value to retrieve. - defaultValue (Optional)
- Type: SystemDateTime
The default value that will be returned if state doesn't contain value for specified name.
Return Value
Type:
DateTimeThe DateTime value associated with the specified name.
See Also