Java tutorial
//package com.java2s; public class Main { public static String subDateMounth(String mBillDate) { int mounth = 0; try { String mMounth = mBillDate.substring(4, 6); mounth = Integer.parseInt(mMounth); } catch (NumberFormatException e) { e.printStackTrace(); } return mounth + ""; } }