SyntaxFix
Write A Post
Hire A Developer
Questions
I would use something like this:
String.format("%tF %<tT.%<tL", dateTime);
Variable dateTime could be any date and/or time value, see JavaDoc for Formatter.
dateTime
Formatter