Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
convert date to dd-mm-yyyy pattern
shawn peter
Ranch Hand
Posts: 1325
1
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
i have a Date object.i need to convert it to the dd-mm-yyyy
pattern
.
can anyone send me the code?
Kumar Agaram
Greenhorn
Posts: 1
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
private SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy");
String
dateStr = sdf.format(dateObject);
Campbell Ritchie
Marshal
Posts: 80234
424
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Welcome to JavaRanch
Kumar Agaram, and thank you for the answer.
I need a new interior decorator. This tiny ad just painted every room in my house purple.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to convert String to Date
JSTL <fmt:parseDate>
Number of days from today
[log4j] DailyRollingFileAppender
conversion of date
More...