If null, continue to perform the following,
If not null and is a valid time, the end of the current operation, to 6 months later to do the following
CodePudding user response:
If (time!=null)The else (valid time & amp; & (the current time - effective time). Month>
=6)
,,,,,,,,,,,,,,,
CodePudding user response:
You yourself to speak out logic, is where there is a problem? So I can have problems just say out, said a logical
CodePudding user response:
DateTime. TryParse (STR)CodePudding user response:
String s="12019-11-27 16:52:00";
DateTime result;
Bool result=DateTime. TryParse (s, out result);
If (result)
{//date
}
The else
{//not date
}
CodePudding user response:
Suitable for product managerCodePudding user response:
Even if you don't have a DateTime TryParse, with the most sillyTry
{
The Convert. ToDateTime (" 12019-11-27 16:52:00 ")
}
Catch {
//not date
} this is ok,