Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Calendar;
import android.content.Context;
import android.text.format.DateUtils;

public class Main {
    private static final int LONG_DATE = DateUtils.FORMAT_SHOW_WEEKDAY | DateUtils.LENGTH_MEDIUM;

    public static String formatLongDate(Context context, Calendar date) {
        return DateUtils.formatDateTime(context, date.getTimeInMillis(), LONG_DATE);
    }
}