hyTags
HomeHome DocumentationDocumentation

date-is-less

Checks if a date is before another date
Parameter
Type
Description
self
Date
The first date
other
Date
The date to compare with
return
bool
True if the first date is before the second date, false otherwise
Test Case:Earlier date is less
    <div></div>
    
    <date-new year="2024" month="6" day="16">
    <date-new year="2024" month="6" day="15">
    <date-is-less>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Later date is not less
      <div></div>
      
      <date-new year="2024" month="6" day="15">
      <date-new year="2024" month="6" day="16">
      <date-is-less>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed