Showing results for 
Search instead for 
Did you mean: 

Converting date

Former Member
0 Kudos

dear colleagues

Is there a function module to convert date from 28-04-2005

to 28042005

kind regards

kaushik hegde

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos


You can try the following

Calendar cal = Calendar.getInstance(TimeZone.getDefault());

String DATE_FORMAT = "MM.dd.yyyy";

java.text.SimpleDateFormat sdf =new java.text.SimpleDateFormat(DATE_FORMAT);


System.out.println("Now : " + sdf.format(cal.getTime()));

Regards, VIP

Former Member
0 Kudos

sorry about my previous memo,

I want to convert date from 28-05-2005 to 28.05.2005

Former Member
0 Kudos

Hi Kaushik

Th above posting was excellent and even i could learbn a bit of that.

Any way use dd.MM.yyyy format which will solve ur cause.

With Wishes

krishna kanth