formating the date to timestamp

X

[XaToA]

hello for formating the date in timestamp format i have make this:

SimpleDateFormat fechabase = new SimpleDateFormat("yy-MM-dd hh:mm:ss.nn");
String strhoy = fechabase.format(new Date());

but the format (yy-MM-dd hh:mm:ss.nn) is worng, in the n is the error.
th timestamp is :
2003-03-03 00:00:00.0

how can i make for getting one timestamp format?
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top