jCheckDate method

JHijri jCheckDate(
  1. JDateModel? da
)

Implementation

JHijri jCheckDate(JDateModel? da) {
  JHijri da2 = JHijri.now();
  if (da != null) {
    if (da.jhijri != null) {
      da2 = da.jhijri!;
    } else if (da.dateTime != null) {
      da2 = JHijri(fDate: da.dateTime);
    }
  }
  return da2;
}