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 Chriss Miller 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
Joined
Aug 25, 2003
Messages
13
Location
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
 
Check out thread269-573131
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top