#simpledateformat

[ follow ]
Alvinalexander
2 months ago
Java

Java SimpleDateFormat example: How to convert a Date to a formatted String

The SimpleDateFormat class in Java allows easy conversion between Date and String formats.
Using SimpleDateFormat with Java is demonstrated with a custom date formatting approach. [ more ]
alvinalexander.com
3 months ago
Scala

A Scala current date and time example

Getting the current date and time in Scala can be done using java.util.Calendar class or Java's SimpleDateFormat class.
The current minute and hour can be obtained by using Calendar.getInstance() and get() method in Scala. [ more ]
[ Load more ]