get Weekday - Java java.util

Java examples for java.util:Week

Description

get Weekday

Demo Code


//package com.java2s;

import java.util.Calendar;

public class Main {
    public static int getWeekday(long time) {
        Calendar min = Calendar.getInstance();
        min.setTimeInMillis(time);/*  w w w  . j  a v  a 2  s .co  m*/
        return min.get(Calendar.DAY_OF_WEEK);
    }
}

Related Tutorials