|
|
How to get current date and time and display it in particular format
Similar entries
- conversion of date to DD-MMM-YYYY format in asp.net
- How to add or subtract days in a date using JSP
- Uttar Pradesh Class 12th Intermediate Exam Time Table 2012
- How to hide post date and time in blogger
- Asp code for greeting user based on time
- How to format datetime in SQL query
- Face value and market value of a share
- How to set Custom error pages in asp.net using web.config
- Difference between Plasma and LCD screens
- Kashmir University BA/B.Sc/B.Com 1st year Exam 2011 Admit Card and Time Table , Kashmir University BA B.Sc B.Com 1st year Exam 2012 Admit Card and Time Table , Kashmir University Time Table 2012
java.util.Date dt=new java.util.Date();//for current date
DateFormat df = new SimpleDateFormat("dd-MMM-yyyy hh:mm:ss");//dateformatter
String myformattedDate = df.format(dt);
out.println(myformattedDate);