Java Month Convert monthformMatDate(Date date)

Here you can find the source of monthformMatDate(Date date)

Description

monthform Mat Date

License

Apache License

Declaration

public static String monthformMatDate(Date date) 

Method Source Code


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

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

public class Main {
    private static SimpleDateFormat smdf = new SimpleDateFormat("yyyyMM");

    public static String monthformMatDate(Date date) {
        return smdf.format(date);
    }//w ww. j a va  2s. c o m
}

Related

  1. month()
  2. month(Date date, Locale locale)
  3. month2String(Date date)
  4. monthAgo()
  5. monthConvertToNumber(String str)
  6. monthIndexAsString(Integer index, Integer offset)
  7. monthNumber(String s)
  8. monthOfDate(Date s)
  9. monthsBetween(String from, String to)