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 static String stringWithDate(Date date, String format) {

        SimpleDateFormat fmt = new SimpleDateFormat(format, Locale.JAPAN);
        String sdate = fmt.format(date);
        //        vmappLog(BsmoInternalConstant.BUSHIMO_SDK_DEBUG_TAG, String.format("stringWithDate %s->%s", date.toString(), sdate));
        return sdate;
    }
}