hyTags
HomeHome DocumentationDocumentation

date-is-equal

Checks if two dates are equal
Parameter
Type
Description
self
Date
The first date
other
Date
The date to compare with
return
bool
True if the dates are equal, false otherwise
Test Case:Equal dates are equal
    <div></div>
    
    <date-new year="2024" month="6" day="15">
    <date-new year="2024" month="6" day="15">
    <date-is-equal>
    <assert-true>
    
    👆 Try to change something!
  • Test Case:Different dates are not equal
      <div></div>
      
      <date-new year="2024" month="6" day="16">
      <date-new year="2024" month="6" day="15">
      <date-is-equal>
      <assert-false>
      
      👆 Try to change something!
    • Test succeeded Test failed