取当前年月
import java.io.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
class test
{
public static void main (String[] args) throws java.lang.Exception
{
Date date=new Date();
DateFormat format=new SimpleDateFormat("yyMM");
System.out.println(format.format(date));
String aa= "11qweasaa123";
aa=aa.substring(aa.length() - 6);
aa=aa.replaceAll("[a-zA-Z]","0");
System.out.println(aa);
}
}