NEW OpenAI Structured Outputs with Label Studio 🚀

DateTime

The DateTime tag adds date and time selection to the labeling interface. Use this tag to add a date, timestamp, month, or year to an annotation.

Use with the following data types: audio, image, HTML, paragraph, text, time series, video

Parameters

Param Type Default Description
name string Name of the element
toName string Name of the element that you want to label
only string Comma-separated list of parts to display (date, time, month, year) date and month/year can’t be used together. The date option takes precedence
format string Input/output strftime format for datetime (internally it’s always ISO); when both date and time are displayed, by default shows ISO with a “T” separator; when only date is displayed, by default shows ISO date; when only time is displayed, by default shows a 24 hour time with leading zero
[min] string Set a minimum datetime value for only=date in ISO format, or minimum year for only=year
[max] string Set a maximum datetime value for only=date in ISO format, or maximum year for only=year
[required] boolean false Whether datetime is required or not
[requiredMessage] string Message to show if validation fails
[perRegion] boolean Use this option to label regions instead of the whole object
[perItem] boolean Use this option to label items inside the object instead of the whole object

Example

<View>
  <Text name="txt" value="$text" />
  <DateTime name="datetime" toName="txt" only="date" />
</View>

In this article

  1. Parameters
  2. Example
Unlock more with Enterprise Get a Demo