Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class Main {
    private static Locale locale = Locale.KOREA;

    public static boolean equalsDay(Date a, Date b) {
        SimpleDateFormat yearFormat = new SimpleDateFormat("yyyyMMdd", locale);
        return yearFormat.format(a).equals(yearFormat.format(b));
    }
}