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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Urgent Help

Status
Not open for further replies.

ilarum

Programmer
Aug 25, 2003
13
DE
Hi,
I have String of this format 08/25/2003 or 08.25.2003. I need to convert this to a Calendar. How do I achieve this. Well the reason for this format of String is that in these values are retrieved from a HTML input tag where the user enters and they need to be converted to Calendar type. How can I achieve this. Its a bit urgent. Could somebody provide help on this.

With Regards
Murali
 
hi murali,

you can set the date of a calender object using its setTime method, which as a parameter requires a date object.

The date object you can set to the date with a little string interpretation using the date object's set methods.

check this link out:


look for the calender object and browse its methods

hope this helps...


Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top