Date Validation – Comparing Dates in Liquid


In this article, the author explains how to compare dates in Liquid, a templating language used in Power Apps portals. The author demonstrates how to check if a given date is earlier than today's date or another specific date by transforming the dates into numbers using the format "yyyyMMdd" and then comparing them using operators like less than, greater than, or equal to. The author also provides examples of how to check if a date is within a certain period, such as the next 30 days. The article includes code snippets and explanations of the filters and operators used in the examples.


Article 25m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time