new Date("2002/10/1")是不推荐使用的方法。
解决方案 »
- socket服务器端如何判断客户端是否关闭连接
- 能不能将不同类型的数据转换成字节流后存储在枚举里啊?
- applet中如何实现JDialog
- 一道国外企业面试题,求助
- jdbc 数据库登录时出现问题了!!
- MidiSystem.getSequencer(false/true) 的作用
- 请大家帮忙,看看怎么把这个字节数组变成中文,谢谢!
- 关于java的键盘输入问题
- 怎样给数据库中的自增字段赋值??????
- 对于JAVA 初学者应该注意什么?
- 有没有将图片转换成6位颜色的Bitmap的程序或工具.
- 实现我的诺言,散分,主要回答人如下:wjmmml(笑着悲伤),xmvigour(微电--有狼的气质 没狼的勇气 真郁闷),sharetop(燕赤霞),piggybank(
public Date(String s)Deprecated. As of JDK version 1.1, replaced by DateFormat.parse(String s). Allocates a Date object and initializes it so that it represents the date and time indicated by the string s, which is interpreted as if by the parse(java.lang.String) method. Parameters:
s - a string representation of the date.
See Also:
DateFormat, parse(java.lang.String)
MyDate.setTime(new java.util.Date());