Send it//string format is: the 2020-01-01 such
Var begin_date=& lt; S: property value="https://bbs.csdn.net/topics/begin_date" & gt; ;
Var end_date=& lt; S: property value="https://bbs.csdn.net/topics/end_date" & gt; ;
CodePudding user response:
Write a JSP codeFor example
& lt; %
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");
Calendar bDate=Calendar. GetInstance ();
Calendar eDate=Calendar. GetInstance ();
BDate. SetTime (SDF. Parse (begin_date));
EDate. SetTime (SDF. Parse (end_date));
While (bDate. Before (eDate)) {
Out. The printf (" & lt; Div> % s