Results 1 to 3 of 3
Thread: extract time from users input
- 02-12-2010, 12:02 AM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
-
I'm not 100% sure of precisely what it is you're trying to do, but I suspect that SimpleDateFormat is what you need to parse the user's input. You may need several of these objects or a more complex DateFormat object to do what you want.
- 02-12-2010, 12:07 PM #3
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
Thanks a lot for your reply
I have to extract time from users input which will be in one of the formats below :
User can type 03:30
as
3:30 or 33 or 033
03:00:00 as :
3.00, 3, 0300 , 3PM , 3:00 , 3/00 any of these user can input
which needs to be converted to 03:00:00 (hh:mm:dd)
User can enter maximum four digit (hh:mm)
I have to convert it into hh:mm:ss format and store in the database.
Thanks for youe help
Darshna
Similar Threads
-
problem with Scanner in Getting users input
By kliane in forum New To JavaReplies: 8Last Post: 01-17-2010, 04:37 PM -
To get time as input from user
By yuvarani in forum New To JavaReplies: 3Last Post: 12-16-2009, 12:19 PM -
validate time input format
By Alairmon in forum New To JavaReplies: 2Last Post: 11-04-2008, 07:39 AM -
how to extract the date n time from images
By norazanita in forum New To JavaReplies: 3Last Post: 06-20-2008, 05:45 PM -
Accounts of users
By Eric in forum Enterprise JavaBeans (EJB)Replies: 1Last Post: 06-27-2007, 04:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks