{"result":{"depiction_url":null,"edges":{"in_module":{"objects":[{"created":"2020-05-30T05:47:59Z","object_id":{"id":1296,"is_a":["text","documentation","reference","module"],"name":"doc_module_mod_base","title":"mod_base","uri":"https:\/\/zotonic.com\/id\/1296"},"seq":1000000}],"predicate":{"id":333,"is_a":["meta","predicate"],"name":"in_module","title":{"_type":"trans","tr":{"en":"In module"}},"uri":"https:\/\/zotonic.com\/id\/in_module"}},"subject":{"objects":[{"created":"2026-09-09T13:48:20Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2622,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_template_validator","title":"Template validator","uri":"https:\/\/zotonic.com\/id\/2622"},"seq":3},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2640,"is_a":["categorization","keyword","keyword_task"],"name":"zotonic_topic_validate","title":"Validate","uri":"https:\/\/zotonic.com\/id\/2640"},"seq":4},{"created":"2026-09-09T13:48:20Z","object_id":{"id":2662,"is_a":["categorization","keyword","keyword_data_type"],"name":"zotonic_topic_date_and_time","title":"Date and time","uri":"https:\/\/zotonic.com\/id\/2662"},"seq":5}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":1745,"is_a":["text","documentation","reference","template_validator"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1745"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_template_validator_validator_date","page_url":{"en":"https:\/\/zotonic.com\/docs\/1745\/date","x-default":"https:\/\/zotonic.com\/docs\/1745\/date"},"preview_url":null,"resource":{"version":3995,"pivot_location_lat":null,"title":"date","is_authoritative":true,"body":"<p>Validate input date against a given date format.<\/p>\n<p>A quick guide to validating a date in Zotonic:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-django\">&lt;input type=&quot;text&quot; id=&quot;my_date&quot; name=&quot;my_date&quot; value=&quot;&quot; \/&gt;\n{% validate id=&quot;my_date&quot; type={date separator=&quot;-&quot; format=&quot;b&quot;} %}\n<\/code><\/pre>\n<p>This code validates when the user enters a date in the following format:<\/p>\n<pre class=\"notranslate\"><code class=\"notranslate language-none\">yyyy-mm-dd\n<\/code><\/pre>\n<h2>Arguments<\/h2>\n<table class=\"table\"><thead><tr><th>Argument<\/th><th>Description<\/th><th>Example<\/th><\/tr><\/thead><tbody><tr><td><code>separator<\/code><\/td><td>Character used to separate date parts, such as <code>\/<\/code> <code>-<\/code> <code>\\<\/code>. Defaults to <code>&quot;-&quot;<\/code>.<\/td><td><code>separator=&quot;-&quot;<\/code><\/td><\/tr><tr><td><code>format<\/code><\/td><td>Date format, big endian (starting with year), little endian (starting with day) or middle endian (starting with month). Defaults to <code>&quot;l&quot;<\/code> (little).<\/td><td><code>format=&quot;m&quot;<\/code><\/td><\/tr><\/tbody><\/table>","slug":"date","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"ef54516e7dbc055cd5134e66a573253dfe8d03dfd358fd3a9451fd68b02faa75","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":328,"is_a":["meta","category"],"name":"template_validator","title":"Validators","uri":"https:\/\/test.zotonic.com\/id\/328"},"doc_source_path":"apps\/zotonic_mod_base\/src\/validators\/validator_base_date.erl","publication_start":"2023-06-24T08:17:50Z","github_url":"https:\/\/github.com\/zotonic\/zotonic\/blob\/master\/apps\/zotonic_mod_base\/src\/validators\/validator_base_date.erl","pivot_location_lng":null,"doc_source_kind":"validator","name":"doc_template_validator_validator_date","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2020-05-30T05:47:33Z","uri":null,"doc_status":"current","is_dependent":false,"erlang_app":"zotonic_mod_base","publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"fcd7360cf6d307f08dac71bede7378e2b4ac72f0\n","erlang_module":"validator_base_date","creator_id":{"id":336,"is_a":["person","robot"],"name":"gitbot","title":"Git","uri":"https:\/\/zotonic.com\/id\/336"},"modified":"2026-10-01T12:53:35Z","title_slug":"date"},"uri":"https:\/\/zotonic.com\/id\/1745","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/1745"}},"status":"ok"}