SyntaxFix
Write A Post
Hire A Developer
Questions
This would give the current date and time:
public String getCurrDate() { String dt; Date cal = Calendar.getInstance().getTime(); dt = cal.toLocaleString(); return dt; }