Skip to main content

Datetime

Datetime is an input used to reference a date and time.

💡 Common datetime usage​

The datetime input type can be used to store any date and time, for example:

  • Deployment time
  • Release time
  • Creation timestamp

API definition​

{
"myDatetimeInput": {
"title": "My datetime input",
"icon": "My icon",
"description": "My datetime input",
"type": "string",
"format": "date-time",
"default": "2022-04-18T11:44:15.345Z"
}
}

Check out Port's API reference to learn more.

Terraform definition​

resource "port_action" "myAction" {
# ...action properties
user_properties = {
string_props = {
myDatetimeProp = {
title = "My datetime"
format = "date-time"
}
}
}
}