string转date

import java.sql.Date;

public class Money {
public static void main(String[] args) {
String date="1987-10-10";
Date t = Date.valueOf(date);
System.out.println(t);
}

}

posted @ 2018-04-27 14:22  ぃSolitary_boy  阅读(421)  评论(0编辑  收藏  举报