Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

The method parse(String) from the type DateFormat is not static

 
Christopher Alain Jones
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, i just want to check a textfield for a valid date with.


but get this
The method parse(String) from the type DateFormat is not static
 
Pat Hays
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See Java API:

DateFormat df = DateFormat.getDateInstance();
myDate = df.parse(myString);
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!