How to get date from jspinner to format "dd/MM/yyyy HH:mm:ss"

Hello all,

I am a newbie with java.

I want to get and convert the date from a jspinner into a specific format:

The format displayed in jspinner is"29/06/2006 20:40:00"

When I do a jspinner.getValue(), it return"Thu Jun 29 20:40:00 CEST 2006".

This is not what I expected. I need to have a return in this format"dd/MM/yyyy HH:mm:ss".

Could you help me about that.

Thanks

[442 byte] By [jspinner] at [2007-11-26 8:22:04]
# 1
You need to play around with java.text.SimpleDateFormat
aniseed at 2007-7-6 21:29:39 > top of Java-index,Development Tools,Solaris and Linux Development Tools...