question re date/calendar objects and cookies

Hi!

I'm wanting to convert a date or gregoriancalendar object to string so that i can insert it as a value into a cookie. I worked that out but I havent worked out how to convert it back from a string into a date or calendar object again. According to my book (which doesnt go into a lot of detail on this topic), I should use DateFormat.parse(String) but its not happening for me!
For example, I tried this:
Date BirthDate = DateFormat.parse(cookie1.getValue());
where the cookie value is a calendar object i converted to a string using the toString method.

Help!

fuzzgig
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories