Well my approach is very basic one as I have never used dateformart stuff.
I have not started using many classes from API and therefore always find a tricky (and less professional) approach to do it. Sometimes I end up making a class which I later realize that it already available. For example...
Change Date to your desired format and then store as string and then use this string to put into query. The code for changing date into yyyy-mm-dd is:
<%
java.util.Date date = new java.util.Date();
int mm = date.getMonth()+1;
int yyyy = date.getYear()+1900;
int dd = date.getDate();
String...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.