# Return to contemplating a Date literal?

**URL:** <https://es.discourse.group/t/return-to-contemplating-a-date-literal/1920>\
**Category:** 💡 Ideas\
**Created:** [February 7, 2024, 2:49pm UTC](https://es.discourse.group/t/return-to-contemplating-a-date-literal/1920 "2024-02-07T14:49:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReinsBrain](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/reinsbrain/32/1165_2.png) [@ReinsBrain](https://es.discourse.group/u/ReinsBrain)\
**Post date:** [February 7, 2024, 2:49pm UTC](https://es.discourse.group/t/return-to-contemplating-a-date-literal/1920/1 "2024-02-07T14:49:23Z")

</div>

I often wish we had a Date literal since it's so ubiquitous. Looks like it had been discussed many many years ago - perhaps we could revisit given so much time has passed: [https://web.archive.org/web/20170202155307/http://wiki.ecmascript.org/doku.php?id=proposals:date\_and\_time](https://web.archive.org/web/20170202155307/http://wiki.ecmascript.org/doku.php?id=proposals:date_and_time)

Adding to that, I'd be interested in a date primitive that, like a string primitive, can be turned into a full-fledged Date object when a method is called on it.

---

<div class="post-metadata">

**Author:** ![ljharb](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/ljharb/32/8_2.png) [@ljharb](https://es.discourse.group/u/ljharb)\
**Post date:** [February 7, 2024, 4:17pm UTC](https://es.discourse.group/t/return-to-contemplating-a-date-literal/1920/2 "2024-02-07T16:17:36Z")

</div>

When Temporal ([https://github.com/tc39/proposal-temporal](https://github.com/tc39/proposal-temporal)) is shipping in engines, then there will hopefully no longer be any reason for anyone to use Date.

---

<div class="post-metadata">

**Author:** ![claudiameadows](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/claudiameadows/32/126_2.png) [@claudiameadows](https://es.discourse.group/u/claudiameadows)\
**Post date:** [March 1, 2024, 1:04pm UTC](https://es.discourse.group/t/return-to-contemplating-a-date-literal/1920/3 "2024-03-01T13:04:42Z")

</div>

Worth noting date literals aren't really much of a thing outside config file formats, data interchange formats, and (less often) query languages. And even those (ex: JSON, XML, PostgreSQL) often don't have them.
