Java Date Format As getDateYyyyMmWithoutDash()

Here you can find the source of getDateYyyyMmWithoutDash()

Description

get Date Yyyy Mm Without Dash

License

Apache License

Declaration

public static String getDateYyyyMmWithoutDash() 

Method Source Code

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

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String getDateYyyyMmWithoutDash() {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMM");
        return simpleDateFormat.format(new Date());
    }//from   ww w . ja v  a2s. co  m
}

Related

  1. getDateAsISOTimestampString(Date timestamp)
  2. getDateAsRFC822String(Date date)
  3. getDateYYYYMMDD()
  4. getDateYYYYMMDD(Object yyyymmdd)
  5. getDateYYYYMMDD_HHSSMMNNN()