SyntaxFix
Write A Post
Hire A Developer
Questions
If you are interested in now only, then simply use:
Date d = new Date();