Link to home
Start Free TrialLog in
Avatar of gshoates
gshoates

asked on

How do I cast a string to a date object

Hello, I'm recieving a date as a string through my main method.  How do I cast this string to a date object to be compared to another date object in the class?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of dorothy2
dorothy2
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gshoates
gshoates

ASKER

Thanks
Avatar of Mick Barry
DateFormat also has some static methods for returning various 'standard' date/time formats.