Solved

How to convert string 02-Jan-80 into another string 19800102

Posted on 2006-11-23
2
208 Views
Last Modified: 2010-05-18
Hi experts

It's me again....
tough day today

how do I convert String 02-Jan-80 in another String with format 19800102.


Thanks
0
Comment
Question by:blarouche
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
ID: 18004673
DateFormat df1 = new SimpleDateFormat("dd-MMM-yy");
DateFormat df2 = new SimpleDateFormat("yyyyMMdd");

System.out.println(df2.format(df1.parse("02-Jan-80"));
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 18004767
:-)
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now