company logo

Date :: operator== - Compare two date values (equal)

The operation compares the two date values and returns true, when the first operand is equal to then the second operand and false otherwise.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation overview

Implementation details

  1. Compare two dates
    bool Date  :: operator== ( odaba::Date &cDate )

    The function compares the date value with the date value passed in cDate.

    • cDate - Date

      The date contains day, month and year, but not the time.

  2. to list
  3. Compare date value with string data
    bool Date  :: operator== ( odaba::String &sDate )

    The function compares the date value with the date passed in sDate.

    • sDate - Date value in string format

      Date values can be passed in different ways as string value:

              Standard: yyyy-mm-dd or yyyymmdd

              English:     mm/dd/yyyy

              German:     dd.mm.yyyy

      The type of date is determined from the separator used.

  4. to list