hyTags
HomeHome DocumentationDocumentation

date-is-greater

Checks if a date is after 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 after the second date, false otherwise
Test Case:Later date is greater
    <div></div>
    
    <date-new year="2024" month="6" day="15">
    <date-new year="2024" month="6" day="16">
    <date-is-greater>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Earlier date is not greater
      <div></div>
      
      <date-new year="2024" month="6" day="16">
      <date-new year="2024" month="6" day="15">
      <date-is-greater>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed