Java - Time as String

> Procedural Languages > Java > Java - Date / Time

1 - About

How to get time as a string ?

String timeStamp = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss").format(new Date());