Hi all,
I would like to create a date object and specify a value. I am facing some defficulties.
Here's what I tried:
String dateString = "2005-04-29 00:00:00.0";
Date asOfDate = new Date(dateString); // this gives Illegal argument exception.
I know that Date constructor with String as argument -- as I am using above -- is deprecated. Can someone tell me how I can achieve the same requirement without using the deprecated method, as above?
Please advise...
Thanks.