|
Print current time using java in jsp page
|
|
12-12-2011, 11:20 PM
Post: #1
|
|||
|
|||
|
<%Calendar calendar=Calendar.getInstance(); SimpleDateFormat dateFormat=new SimpleDateFormat("dd-mm-yyyy"); String date=dateFormat.format(calendar.getTime()); out.println(date); %> As you can see the date is displayed if you want to process this date value and use in different pages just use session <%session.setAttribute("date",date);%> Now you can use this value for processing.We expect your valuable comments. Happy coding
|
|||
Advertise here or at any positions around our site send a mail to info@walkinsforum.com
|
« Next Oldest | Next Newest »
|
![]() |
|||||||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|
User(s) browsing this thread: 1 Guest(s)






![[-]](images/royal_red/collapse.gif)






