protected .www.freejavaprojectsonline.blogspot.com . mails to : johnjustin@in.com */
public class Calc{
public static String formatDate(String x)
{
String year=x.substring(0,4);
String day=x.substring(8,10);
String month=null;
int mm=Integer.parseInt(x.substring(5,7));
switch (mm)
{
case (1):
month="JAN";
break;
case (2):
month="FEB";
break;
case (3):
month="MAR";
break;
case (4):
month="APR";
break;
case (5):
month="MAY";
break;
case (6):
month="JUN";
break;
case (7):
month="JUL";
break;
case (8):
month="AUG";
break;
case (9):
month="SEP";
break;
case (10):
month="OCT";
break;
case (11):
month="NOV";
break;
case (12):
month="DEC";
break;
}
return(year+"/"+month+"/"+day);
}
}
NEXT =>>class DepositFixed IN ONLINE BANKING PROJECT