I have always had problems while converting Dates which are generated by the System into a String. Here's a small code for it.
SimpleDateFormat strDate = new SimpleDateFormat("dd-MMM-yyyy");
String dateStr= strDate.format(new Date() );
System.out.println(dateStr);
I am a polyglot programmer, who loves to design & architect solutions and have an opinion on technology. This blog is my space where I share my ideas on technology. They are my ramblings on Tech space in Java & JVM based Languages
Tuesday, March 21, 2006
Subscribe to:
Post Comments (Atom)
Java 10 Features
My blog post in JournalDev for Java 10 Features
-
My blog post in JournalDev for Evolution of Iterators in Java
-
My blog post in JournalDev for Java10: Local-Type Inference
-
My blog post in JournalDev for Java 10 Features
No comments:
Post a Comment