Score:2

old dates in datetime field

fr flag

I need to be able to enter old dates. I am not allowed to enter anything prior 1880. Using drupal 9, datetime field.

Daterange does not allow to enter anything before 1900.

Any workaround or solution?

No Sssweat avatar
ua flag
I can only go back to 1921 on windows 10, so the fact that Drupal can go back until 1880 seems impressive. The ugly workaround would be to use a text field instead of the datetime
Eugene Kaganovich avatar
fr flag
I found a module. yearonly. which so far is a workaround for me. By default, it is from 1900, but you can edit a yml file containing the range definition. An ideal solution should be a standard datetime field though.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.