tDaysFromNow function
Implementation
int? tDaysFromNow(val) {
final DateTime? targetTime = tTime(val);
if (targetTime is DateTime) {
final endOfTargetTimeDay = DateTime(targetTime.year, targetTime.month,
targetTime.day, 23, 59, 59, 999, 999);
return endOfTargetTimeDay.difference(DateTime.now()).inDays;
}
return null;
}