Skip to content

Add Date(Time)Var for scripts to allow much easier date input #15812

@JCWasmx86

Description

@JCWasmx86

NetBox version

v3.7.6

Feature type

New functionality

Proposed functionality

Add a new DateVar that allows people that want to run a script to provide a date with a datepicker, not with e.g. just a simple text input field.

image

I will provide patches, if this issue is accepted => You can assign me to this issue

Use case

For users of scripts: No need to check out the date format? Is it YYYY-MM-DD or YYYY-DD-MM etc. It makes selecting input easier. Furthermore if you submit an invalid date (E.g. 2024-02-31) this would be already rejected during the form submission

For developers of scripts: No need to manually parse dates => Less code, less error handling in case of invalid input.

Database changes

None

External dependencies

None

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions