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 Z yy", Locale.US);

    public static String dateToStringAssigRaco(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM - hh:mm a");
        String sDate = sdf.format(date);
        return sDate;
    }
}