Run Code
|
API
|
Code Wall
|
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
isPrime
My1
add
jb11.0 threads tick tock 1.0
Count and Say
Arredondamento de datas para dias 10, 20 e 30
Max in 2D array
Coding Challenge - 03 (Prime numbers)
Java # Dizi ile ek bulma
++a vs a++ and calculations around different variables