Java Year Format getYYYYMM()

Here you can find the source of getYYYYMM()

Description

get YYYYMM

License

Open Source License

Return

SimpleDateFormat

Declaration

public static SimpleDateFormat getYYYYMM() 

Method Source Code

//package com.java2s;
/*//  w  w w. jav a  2  s. c  o  m
 * Copyright (C) 2010 Viettel Telecom. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.text.SimpleDateFormat;

public class Main {
    /**
     *
     * @return SimpleDateFormat
     */
    public static SimpleDateFormat getYYYYMM() {
        SimpleDateFormat yyyymm = new SimpleDateFormat("yyyyMM");
        return yyyymm;
    }
}

Related

  1. getYYMMDD(int i)
  2. getYYYY()
  3. getYYYY(java.util.Date date)
  4. getyyyy_MM_dd(Date date)
  5. getyyyy_MM_dd2(String date)
  6. getYYYYMM(final Date date, final String separator)
  7. getYYYYMMDD(Date date)
  8. getYYYYMMDD(Date date)
  9. getYYYYMMDD(int y, int m, int d)