The Constructor Date(String) is Deprecated since of JDK 1.1 you should not use it
2010-11-20 11:22
429 查看
The Constructor Date(String) is Deprecated since of JDK 1.1 you should not use it
You should use java.text.SimpleDateFormat to convert String value to Date. E.g.1 | private static final SimpleDateFormat sdf = new SimpleDateFormat(”yyyy-MM-dd”); |
2 | String birthDate = “ 1981 - 12 - 30 ?; |
3 | Date birth = sdf.format(birthDate); |
相关文章推荐
- The Constructor Date(String) is Deprecated since of JDK 1.1 you should not use it
- 异常-----Can't convert the date to string, because it is not known which parts of the date variable are in use. Use ?date, ?time or ?datetime built-in, or ?string.\u003Cformat> or ?string(format) built-
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- Item5: Explicitly disallow the use of compiler-generated functions you do not want--若不想使用编译器自动生成的函数,就该明确拒绝
- the "find" which you should kown that how to use it
- 解决php It is not safe to rely on the system's timezone settings. You are *required* to use the date.
- It appears as though you do not have permission to view information for any of the hosts you request
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
- 【条款6】Explicitly disallow the use of compiler-generated functions you do not want
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
- Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextE
- some issues that you should be take care of when use the plupload module
- "PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You
- its raw version as part of a circular reference,but not use the final version of the bean
- Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to us
- 如何解决It's likely you're attempting to run Eclipse using the JRE instead of the JDK