Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String to Date

Status
Not open for further replies.

usadra

Programmer
Sep 14, 2001
5
IN
I am new to java.
Can anyone please let me know how to format a string input to date format in java?
 
i think you're looking for this:

var str = "12/25/2002";
var oDate = new Date(str);

this will result in a Date object "oDate"
=========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top