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;
import java.util.Locale;

public class Main {
    public final static SimpleDateFormat format = new SimpleDateFormat("EEE MMM dd HH:mm:ss", Locale.ENGLISH);

    public static String dateToStringVistaInici(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM");
        String sDate = sdf.format(date);
        return sDate;
    }
}