Get day

Discussion in 'Plugin Development' started by jeroenhero123, Dec 7, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    jeroenhero123

    Hey, I got some problems with getting the current day...
    Date d = new Date();
    If(d.getMonth() == 11) {

    Works (Check if the month is december)

    But if(d.getDay() == 6) {
    Doesn't work...
    (Check if the day is 7)

    How can I check what the current day is?
    (In example check if today is 25 December)
     
  2. Offline

    pookeythekid

    jeroenhero123 This should help. ;) By the way, StackOverflow is a great place to look if it's not really a problem that involves any BukkitAPI.
     
Thread Status:
Not open for further replies.

Share This Page