testing a date thing

(:if expr date "-1month"..tomorrow {*$BlogDate2} && equal {*$:TestingYeah} 1:)
(:include Site.FoxCommentBox:)
(:elseif {*$:TestingYeah} 1:)
None here!
(:if {*$:TestingYeah} 1:)
Waste!
(:ifend:)

Add a comment

Name:
E-mail: (for gravatar only, not stored.)
Website: (e.g. google.com)
Type your comment
Type this number: 685

Waste!

TestingYeah: 1
BlogDate2: {*$BlogDate2}
BlogDate3: {(ftime today %F)}
* (:if date "-1month"..tomorrow {*$BlogDate2}:) true (:else:) %red%false (:ifend:)
* (:if expr date "-1month"..tomorrow {*$BlogDate2} && equal {*$:TestingYeah} 1:) true (:else:) %red%false (:ifend:)
* (:if expr date "-1month"..tomorrow {*$BlogDate2} && equal {*$:TestingYeah} 0:) true (:else:) %red%false (:ifend:)
* (:if expr ! date "-1month"..tomorrow {*$BlogDate2} && equal {*$:TestingYeah} 1:) true (:else:) %red%false (:ifend:)
* (:if expr ! date "-1month".."-3weeks" {*$BlogDate2}:) true (:else:) %red%false (:ifend:)

TestingYeah: 1 BlogDate2: 2007-10-16 BlogDate3: 2017-04-27

  • true
  • true
  • false
  • false
  • true
Creative Commons License

Welcome to JonHaupt.net; it's my blog, as you might have gathered. I write about food, photos, and other things.

The blog looks best using Chrome, Firefox, Safari, or WebKit. If you use IE or something, and it doesn't look as good, sorry.

JonHaupt.net is powered by PmWiki.