dojo.date.compare
dojo.require("dojo.date");
defined in dojo/date.js
Returns 0 if equal, positive if a > b, else negative.
parameter | type | description |
---|---|---|
date1 | Date | object |
date2 | Date | Optional. object. If not specified, the current Date is used. |
portion | String | Optional. A string indicating the "date" or "time" portion of a Date object. Compares both "date" and "time" by default. One of the following: "date", "time", "datetime" |