import java.util.*;
/**
 * @author huangqin
 *
 */
public class ShowTime {
private Date date=null;
private int yy;
private int mm;
private int dd;
private String sy;
private String sd;
private String sm;
public ShowTime(){
 date=new Date();
 yy=date.getYear()+1900;
 mm=date.getMonth()+1;
 dd=date.getDate();
 sy=String.valueOf(yy);
 sm=String.valueOf(mm);
 sd=String.valueOf(dd);
 if(sm.length()==1){
  sm="0"+sm;}
 if(sd.length()==1){
  sd="0"+sd;
 }
}
 public String getDateString(){
  return sy+sm+sd;
 }
 public String getDate(){
  return sy+"-"+sm+"-"+sd;
 }
}