Date and Time in Validity #162
Answered
by
amyasnikov
olivertwin
asked this question in
Q&A
-
hey guys, has anyone tried using date validation in the plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
amyasnikov
Apr 14, 2025
Replies: 2 comments 3 replies
-
Hey @olivertwin, I think it's possible. Do you want to check if your router license is about to expire? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Well, this is definitely possible. You need to define a NameSet to import the required libraries (at least datetime).
The test generally should look like this:
You can use
django.utils.timezone.now()
as well to get timezone aware datetime (timezone is set inside netbox settings)