Date :: operator< - Compare two date values (less)
The operation compares the two date values and returns true, when the first operand is smaller than 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
- Compare two dates
Date :: operator< ( cDate ) - Compare date value with string data
Date :: operator< ( sDate )
Implementation details
-
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.
to list
- cDate
- Date
-
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.
to list
- sDate
- Date value in string format