Advertisement
BullyATWiiplaza

Java - SimpleDateFormat Example

Jul 20th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.20 KB | None | 0 0
  1. import java.text.SimpleDateFormat;
  2. import java.util.Date;
  3.  
  4. public class CurrentDate
  5. {
  6.     public static String get()
  7.     {
  8.         return new SimpleDateFormat("dd.MM.YYYY HH:mm").format(new Date());
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement