
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@react-querybuilder/datetime
Advanced tools
Augments react-querybuilder with enhanced date/time functionality.
To see this in action, check out the react-querybuilder
demo with the "date/time" option enabled.
npm i react-querybuilder @react-querybuilder/datetime
# OR yarn add / pnpm add / bun add
To add date/time functionality to formatQuery
, import a rule processor from @react-querybuilder/datetime/dayjs
, @react-querybuilder/datetime/date-fns
, or @react-querybuilder/datetime/luxon
—depending on which library you wish to use or are already using—and pass it to the ruleProcessor
option.
import { formatQuery } from 'react-querybuilder';
import {
datetimeRuleProcessorMongoDBQuery,
datetimeRuleProcessorSQL,
} from '@react-querybuilder/datetime/dayjs';
// SQL
formatQuery(query, { preset: 'postgresql', fields, ruleProcessor: datetimeRuleProcessorSQL });
// MongoDB
formatQuery(query, {
format: 'mongodb_query',
fields,
ruleProcessor: datetimeRuleProcessorMongoDBQuery,
});
The date/time rule processors will fallback to using the default rule processors if the rule's field configuration does not have a datatype
value of "date", "datetime", "datetimeoffset", or "timestamp", or if the operator
is specific to string comparisons ("contains", "beginsWith", "endsWith", etc.). You can provide a custom isDateField
function to override this behavior through the context
option.
[v8.8.4] - 2025-08-27
useOptionListProp
hook to standardize option list prop normalization.match
property is now removed when a rule's field
is updated to a field that does not support match modes.FAQs
Date/time features for react-querybuilder
We found that @react-querybuilder/datetime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.