CustomField of the type DateTime #7155

Closed
opened 2025-12-29 20:19:52 +01:00 by adam · 3 comments
Owner

Originally created by @PieterL75 on GitHub (Oct 24, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.2.9

Feature type

New functionality

Proposed functionality

Create a new Custom Field of the type 'DateTime'

Use case

I need to store date and time values in a custom field. Currently this is only possible in a text field, but then the sorting is off.
A date-time fieldtype could be very useful,

Database changes

No response

External dependencies

No response

Originally created by @PieterL75 on GitHub (Oct 24, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.2.9 ### Feature type New functionality ### Proposed functionality Create a new Custom Field of the type 'DateTime' ### Use case I need to store date and time values in a custom field. Currently this is only possible in a text field, but then the sorting is off. A date-time fieldtype could be very useful, ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: feature labels 2025-12-29 20:19:52 +01:00
adam closed this issue 2025-12-29 20:19:52 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 25, 2022):

Closing this as it might involve working with timezones again. /s

This is probably doable if we normalize to an ISO timestamp. I assume we'd store values using the system's timezone and adjust on display to the user.

@jeremystretch commented on GitHub (Oct 25, 2022): Closing this as it might involve working with timezones again. /s This is probably doable if we normalize to an ISO timestamp. I assume we'd store values using the system's timezone and adjust on display to the user.
Author
Owner

@PieterL75 commented on GitHub (Oct 26, 2022):

since NetBox is in only one timezone (and not per user), it would be good to store the UTC timestamp and convert it to the timezone of NetBox during the display.

@PieterL75 commented on GitHub (Oct 26, 2022): since NetBox is in only one timezone (and not per user), it would be good to store the UTC timestamp and convert it to the timezone of NetBox during the display.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 26, 2022):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Dec 26, 2022): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7155