Here you can find the source of getStringFormatMMYYWithoutHyphens(Date aDate)
Parameter | Description |
---|---|
aDate | a parameter |
public static String getStringFormatMMYYWithoutHyphens(Date aDate)
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**//from w ww.j a v a2s .c om * * @param aDate * @return tring * */ /*==================================================================*/ public static String getStringFormatMMYYWithoutHyphens(Date aDate) { SimpleDateFormat myFormatter = new SimpleDateFormat("MMyy"); if (aDate != null) { String myFormattedDate = myFormatter.format(aDate); return myFormattedDate; } return null; } }