isSameDatePart method

ConditionQuery isSameDatePart(
  1. DateTime d
)

Get a statement to check weather now has same date part of this value.

Implementation

ConditionQuery isSameDatePart(DateTime d) {
  var result = ConditionQuery();
  result.queryBuilder = () =>
      (day.equals(d.day) & month.equals(d.month) & year.equals(d.year))
          .buildQuery();
  result.parametersBuilder = () => getParameters();
  return result;
}