1.
<script src="${contextPath}/resources/web/js/My97DatePicker/WdatePicker.js" type="text/javascript" ></script>
<input size="20" id="createdate" name="createdate" value="${infoproject.createdate}" class="Wdate input-medium" type="text"
onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" />
转换成Long:
function.setCreatedate(Long.toString(DateUtil.dataString2long(function.getCreatedate(), "YYYY-MM-DD")));
转换成DATETIME:
LEFT(FROM_UNIXTIME(createdate/1000),10) createdate
2.当时时间
Long.toString(System.currentTimeMillis()