please some one help me with this code

Try Google. Or any other search.

Use the classes java.util.Date with the java.textSimpleDateformatter, or/and java.util.Calendar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.