# How do i defualt a date model variable to todays date

**URL:** <https://discourse.elm-lang.org/t/how-do-i-defualt-a-date-model-variable-to-todays-date/8147>\
**Category:** Learn\
**Created:** [February 9, 2022, 6:15am UTC](https://discourse.elm-lang.org/t/how-do-i-defualt-a-date-model-variable-to-todays-date/8147 "2022-02-09T06:15:29Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![hrnxm](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/hrnxm/32/5116_2.png) [@hrnxm](https://discourse.elm-lang.org/u/hrnxm)\
**Post date:** [February 16, 2022, 8:02am UTC](https://discourse.elm-lang.org/t/how-do-i-defualt-a-date-model-variable-to-todays-date/8147/7 "2022-02-16T08:02:05Z")

</div>

@Sebastian  
Just a small correction, I think you meant:

```auto
type alias Flags =
  {
    initialTime : Int
  }

```

---

_[View the full topic](https://discourse.elm-lang.org/t/how-do-i-defualt-a-date-model-variable-to-todays-date/8147)._
