DODATE.JAVA
/ * Format the Date
* /
Package WAP;
Import java.util. *; import java.text. *; import java.lang. *;
Public class doDate {
Public DODATE () {}
Public string formatdate11 ("YYY YYDATEDATEFORMAT (" YYY YYY MM Moon DD Day HH MM] SS Second "); string strdate = formatter.format (mydate); return strdate;}
Public string formatdate2 (Date MyDate) {SimpleDateFormat Formatter = New SimpleDateFormat ("YYY YYY MM Moon DD Day"); string strdate = formatter.format (mydate); return strdate;}
Public String Formatdate3 (Date MyDate) {SimpleDateFormat Formatter = New SimpleDateFormat ("YYYY-MM-DD HH: MM: SS"); string strdate = formatter.format (mydate); return strdate;}
Public String Formatdate4 (Date MyDate) {SimpleDateFormat Formatter = New SimpleDateFormat ("YYYY-MM-DD"); string strdate = formatter.format (mydate); return strdate;}
Public String Formatdate5 (Date MyDate) {SimpleDateFormat Formatter = New SimpleDateFormat ("YYYY / MM / DD"); string strdate = formatter.format (mydate); return strdate;}
Public String Formatdate6 (Date MyDate) {SimpleDateFormat Formatter = New SimpleDateFormat ("mm-dd hh: mm"); string strdate = formatter.format (mydate); return strdate;}}