Date Time additions/parsing
- From: Carla <crashoverride111@xxxxxxxxx>
- Date: Fri, 31 Oct 2008 13:00:29 -0700 (PDT)
Hi,
I have a GUI which has a departure date field (text), departure time
field (text), and once the user enters information about these, I have
to add the estimated time of journey to the departure date-time to
calculate arrival date-time.
Can someone help me, please?
I am getting the date from the departure date field in the following
manner.
String str_date = departdateField.getText();
DateFormat formatter;
Date date;
formatter = new SimpleDateFormat("dd-MMM-yy");
date = (Date) formatter.parse(str_date);
System.out.println("Today is " + date);
.
- Follow-Ups:
- Re: Date Time additions/parsing
- From: Eric Sosman
- Re: Date Time additions/parsing
- Prev by Date: Re: kosher jpgs
- Next by Date: Re: Is statement.executeBacth() a transaction?
- Previous by thread: kosher jpgs
- Next by thread: Re: Date Time additions/parsing
- Index(es):
Relevant Pages
|