Please i want to know how to get the current date in a form of jsp page using spring .Is there a jsp tag for that or maybe a library ? here is my code :
<form:input path="date" value=" " /> </form:form>
Here is simple use for class Date.
Date date = new Date(); date.toString();
what give you String like this.
Sat Oct 01 21:02:33 AMT 2016
Here is simple use for class GregorianCalendar.
Calendar calendar = new GregorianCalendar(); calendar.getTime()
What returns you object with type java.util.Date or you can take what property you want with method get like this
Convert it to String how you want and than pass to your jsp page.