1
package org.hisp.gtool.utilities;
3
public class GAUtilities {
6
* To get the Date Format as Jan-2007 From 2007-01-01 Format
8
public String getMonYearFormat(String strDate)
12
"","Jan","Feb","Mar","Apr","May","Jun",
13
"Jul","Aug","Sep","Oct","Nov","Dec"
15
String partsOfStartingDate[] = strDate.split("-");
16
int selectedMonth = 0;
20
selectedMonth = Integer.parseInt(partsOfStartingDate[1]);
26
String monYearFormat = monthNames[selectedMonth]+"-"+partsOfStartingDate[0];
28
}// getMonYearFormat end
31
* Returns the concatinated String For Individual String Tokens
33
public String getConcatedString(String[] strArray, String concatOpe)
36
String concatedString = "";
37
while(count < strArray.length -1)
39
concatedString += strArray[count] + concatOpe;
42
concatedString += strArray[count];
43
return concatedString;
44
}// getConcatedString end