Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.text.SimpleDateFormat;
- import java.util.Date;
- public class World
- {
- public static void main(String[] args)
- {
- Date date = new Date();
- int day = Integer.parseInt(new SimpleDateFormat("dd").format(date));
- int month = Integer.parseInt(new SimpleDateFormat("MM").format(date));
- if(day > 2 && month == 9)
- {
- day = 2;
- month = 9;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement