Skip to content

Support time-based date arithmetic in expressions #10826

@JaneSjs

Description

@JaneSjs

T26150 - Feature request: Support hour/minute addition in SurveyJS expressions
https://surveyjs.answerdesk.io/internal/ticket/details/T26150


Current expression functions do not support adding hours, minutes, or seconds to date values.

Functions such as dateAdd() only work with date-level units.

Suggestion: Add native support for time units in expressions, for example:

dateAdd(currentDate(), 30, "minutes")

Alternatively, introduce a dedicated function:

addTime(date, value, unit)

Where unit supports hours, minutes, and seconds.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions