// start time information
String mStrStarTime = "2019-01-01";
// end time information
String mStrEndTime = "2020-01-01";
// Start and end dates logic determination
int mPlanTime = (mStrStarTime) .compareTo ( mStrEndTime);
end // call time is less than the start time
IF (mPlanTime> mPlanTime == 0 || 0) {
new new SnackbarUtil.SnackbarBuilder (mContext, "start time should be less than the end time") the .Show ();
return;
}
Date of judgment
Guess you like
Origin www.cnblogs.com/sunjian43792901/p/11114544.html
Recommended
Ranking