View Full Version : dates in java
vineeth v s
September 14th, 2011, 05:50 PM
hi,
i want to take date form swing GUI of java from user as input to the program,
for doing some date calcs. so it shouldn't be in string... ](*,)](*,)
can anybody help me pls...?
karlson
September 14th, 2011, 06:11 PM
hi,
i want to take date form swing GUI of java from user as input to the program,
for doing some date calcs. so it shouldn't be in string... ](*,)](*,)
can anybody help me pls...?
strptime anyone?
ofnuts
September 14th, 2011, 10:23 PM
hi,
i want to take date form swing GUI of java from user as input to the program,
for doing some date calcs. so it shouldn't be in string... ](*,)](*,)
can anybody help me pls...?
1) use a DateFormat to parse the string, if using a textfield. But I'm sure you'll find Date Selection/Calendard widgets around.
2) Use the Calendar class for your computations
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.