Skip to main content

Check out Port for yourselfย 

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"
}
}
}
}