Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
simple date time in java
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; import java.text.SimpleDateFormat; class Rextester { public static void main(String args[]) { SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss dd/MM/yyyy"); Date date = new Date(); System.out.println(dateFormat.format(date)); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Convert ArrayList to array in java
Sourab Ghosh @ IP Address
l
Union of Arrays
Java consecutive repeated cha
Cola Machine
toStringMethodinJava
Strings Ops
int float
assignment 3
Please log in to post a comment.