Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static void getWeekDate(long startUnix, int week) {
        startUnix += week * 7 * 86400 * 1000;
        Date date = new Date(startUnix);
        SimpleDateFormat eDateFormat = new SimpleDateFormat("E");
        int iE = Integer.parseInt(eDateFormat.format(date));
    }
}