Created
September 3, 2019 07:27
-
-
Save seunggabi/f329974dcf09550abfa382025b93b34d to your computer and use it in GitHub Desktop.
getDateTime.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getDateTime() { | |
Date from = new Date(); | |
SimpleDateFormat transFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | |
return transFormat.format(from); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment