//转换日期对象----变成String类型
public static String getShiJian(Date date)
{
SimpleDateFormat sf =new SimpleDateFormat("yyyy-MM-dd");
String date1=sf.format(date);
String temp = null;
StringTokenizer sd=new StringTokenizer(date1, "-");
String pyear=sd.nextToken();
String pmonth=sd.nextToken();
String pday=sd.nextToken();
temp=pyear+","+pmonth+","+pday;
return temp;
}
public static String getShiJian(Date date)
{
SimpleDateFormat sf =new SimpleDateFormat("yyyy-MM-dd");
String date1=sf.format(date);
String temp = null;
StringTokenizer sd=new StringTokenizer(date1, "-");
String pyear=sd.nextToken();
String pmonth=sd.nextToken();
String pday=sd.nextToken();
temp=pyear+","+pmonth+","+pday;
return temp;
}