<% @ Page import = "Java. util. Date" %>
<% @ Page import = "Java. Text. simpledateformat" %>
<%
Date = supplierinf. sicontractdate;
Simpledateformat format = new simpledateformat ("yyyy-mm-dd ");
String STR = format. Format (date );
%>
Import java. util. date;
Import java. Text. simpledateformat;
Date = from. getafmdate ();
If (null! = Date ){
Simpledateformat yearformat = new simpledateformat ("YYYY ");
Simpledateformat monthformat = new simpledateformat ("mm ");
Simpledateformat dayformat = new simpledateformat ("DD ");
To. setafmyear (yearformat. Format (date ));
To. setafmmonth (monthformat. Format (date ));
To. setafmday (dayformat. Format (date ));
}
Simpledateformat format = new simpledateformat ("yyyy-mm-dd ");
Apppo. setafmdate (format. parse (appform. getafmyear () + "-" +
Appform. getafmmonth () + "-" +
Appform. getafmday ()));