<form>
.........
<%
/*************************
search google for all the java date formats, here are some common ones
dd MMMMM yyyy
yyyyMMdd
dd.MM.yy
MM/dd/yy
yyyy.MM.dd G 'at' hh:mm:ss z
yyyy.MMMMM.dd GGG hh:mm aaa
**************************
String format = "MM/dd/yyyy";
Date today = new Date();
SimpleDateFormat formatter = new SimpleDateFormat(format);
String todaydate= formatter.format(today);
%>
<input type="hidden" name="today_date" value="<%=todaydate%>" ID=Hidden1>
</form>
Main Topics
Browse All Topics





by: mahender20Posted on 2004-09-23 at 10:23:55ID: 12135619
There is no text box in the form, but the database has 7 fields, while the form has 6 fields