Filter on Date and Time Values

All date/time values must be in ISO 8601 format. The library uses the Temporal API internally.

// Date
const ast = parse(tokenize("createdAt gt 2024-01-01"));

// DateTimeOffset
const ast2 = parse(tokenize("createdAt gt 2024-01-01T00:00:00Z"));

// Use now() to compare against the current date/time
const ast3 = parse(tokenize("createdAt gt now()"));

Copyright © 2026 The OData Filter Authors.