jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes Printing date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing date" Watch "Printing date" New topic
Author

Printing date

Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

How to print the date as 13 Sept 2010 using a single line of code?


dkj4jdk
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
Deepak Kumar Jena wrote:How to print the date as 13 Sept 2010 using a single line of code?



Joanne
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
Joanne Neal wrote:
Deepak Kumar Jena wrote:How to print the date as 13 Sept 2010 using a single line of code?



I'd be surprised if that's really what he meant.


JDBCSupport - An easy to use, light-weight JDBC framework -
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44585
    
  34
Joanne! Really!

There are useful hints in the documentation for Formatter. And search the Java™ Tutorials for "formatting". If you keep going long enough, you will actually find an example for dates.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3742
    
  16
Campbell Ritchie wrote:Joanne! Really!


You're right. I should only have given some hints rather than the actual code. Sorry.
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

Yah Sebastian has got some idea about what I was looking for (Date Format). Thanks Ritchie for giving me the hint.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 4101
    
  19

Joanne Neal wrote:
Campbell Ritchie wrote:Joanne! Really!


You're right. I should only have given some hints rather than the actual code. Sorry.




The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44585
    
  34
I never said anything about DateFormat, but that will probably work too.
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

Thanks to all. I have done it.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44585
    
  34
Well done. How did you do it?
Deepak Kumar Jena
Ranch Hand

Joined: Sep 08, 2010
Posts: 68

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing date
 
jQuery in Action, 3rd edition