Contentful logo

Contentful Community

Array or list of DateTime

content_modeling
#1

Good Day,

I am trying to create a content model for events (theater shows, films, etc) where each event has multiple showtimes. I want to create showtime filed of DateTime type.
Is this possible ? or should i make it of type Json object and store the dates there ?

0 Likes

#2

Hi there,

It should be possible to do what you described by outlining the following:

  1. Have an events content model
    2)Create a showtime content model with a date field (it will allow you to pass a specific date and time on each entry)
    3)Create a referencing field in the events content model to link these items in your event entry
1 Like