SyntaxFix
Write A Post
Hire A Developer
Questions
Not really sure about what you meant, but you probably just need
Date d = new Date();