Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jamil Akram   on Jan 12 In Java Category.

  
Question Answered By: Mae Roberts   on Jan 12


or you take the simple way:

public static String getRightNow() {
Date date = new Date(System.currentTimeMillis());
SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
return formatter.format(date);
}

but the code  below looks really cool

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on how to get the time of my machine Or get search suggestion and latest updates.


Tagged: