# Nested where + date compare not working?

**URL:** <https://discourse.gohugo.io/t/nested-where-date-compare-not-working/10978>\
**Category:** support\
**Created:** [March 10, 2018, 10:38pm UTC](https://discourse.gohugo.io/t/nested-where-date-compare-not-working/10978 "2018-03-10T22:38:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [March 10, 2018, 10:52pm UTC](https://discourse.gohugo.io/t/nested-where-date-compare-not-working/10978/2 "2018-03-10T22:52:02Z")

</div>

Most likely ge, etc are math functions. I haven’t tried it, but first do `.Unix` on the date param and then compare them with `now.Unix`.

**Update** : No wonder this felt like deja vu ([ref](https://discourse.gohugo.io/t/compare-time-to-determine-if-now-is-today/9217/3?u=kaushalmodi)) 😄

**Update 2** : Also, pretty sure that the 2nd and 3rd args of `where` have to be strings…

---

_[View the full topic](https://discourse.gohugo.io/t/nested-where-date-compare-not-working/10978)._
