new Date("2002/10/1")是不推荐使用的方法。
解决方案 »
- static
- 如何将文件的绝对路径转化为URL
- Hashtable这是什么意思?怎么改?
- 请问 UpperCaseDocument这个类是在哪个包里面呢?
- getvalueisadjusting
- 如何获得本地系统的所有驱动器名 作为树形结构的根结点下的第一层数据
- Thread.currentThread().sleep(5000)跟Thread.sleep(5000)有什么不同呢?
- 有一事不名???????
- 一个特简单(对诸位高手来讲)但我至今却未解决的问题,望关注----程序测试时老提示说找不到运行环境,咋整的???
- java基础问题String与Stringbuffer
- 有没有将图片转换成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());