Results 1 to 5 of 5
- 07-08-2012, 03:37 PM #1
Member
- Join Date
- Jul 2012
- Posts
- 2
- Rep Power
- 0
need to seperate date from a string
Hi I am new to java programming and I have a issue need to be resolved. I need to read a cell in excel file which contains some text, then space and then a date. I need to separate them and find out the date. can anybody please help me. I am able to find cell of excel file. I just need parts of these strings as separate.
Thanks in advance
Regards
vivek
- 07-08-2012, 05:21 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Re: need to seperate date from a string
Split the string, or use a regular expression, then if you want a Date object use a DateFormat such as SimpleDateFormat (Java Platform SE 6)I need to read a cell in excel file which contains some text, then space and then a date. I need to separate them and find out the date
- 07-09-2012, 02:17 AM #3
Member
- Join Date
- Jul 2012
- Posts
- 2
- Rep Power
- 0
Re: need to seperate date from a string
Hi
Thanks for the reply.
Can I please request you to give me some example code in this matter.
I would be grateful
Thanks
Regards
Vivek
- 07-09-2012, 02:47 AM #4
Senior Member
- Join Date
- Apr 2010
- Location
- Belgrade, Serbia
- Posts
- 278
- Rep Power
- 4
Re: need to seperate date from a string
^Can you give us part of the code where you have already tried to write code for separation date from string?
- 07-09-2012, 03:53 AM #5
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,606
- Rep Power
- 5
Re: need to seperate date from a string
You have the process/algorithm (see post 2), but you have given us no code context - so giving you any code would be completely out of context (possibly rendering it useless). If you don't know how to do each step in the process, research them - do a google search, read the API - if you have a specific question about each, then ask a question and provide the contextCan I please request you to give me some example code in this matter.
Similar Threads
-
string date to formatted date string
By reach2sudhakar in forum New To JavaReplies: 4Last Post: 06-20-2011, 10:06 AM -
String to date conversion
By nn12 in forum New To JavaReplies: 4Last Post: 11-04-2010, 07:59 AM -
converting string (GMT date) to date in US time.
By JRuyechan in forum New To JavaReplies: 1Last Post: 10-15-2010, 07:07 AM -
convert String date to Date
By computerbum in forum New To JavaReplies: 7Last Post: 09-18-2010, 03:26 PM -
The constructor Person(String, String, Date) is undefined
By fh84 in forum New To JavaReplies: 7Last Post: 11-03-2009, 02:18 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks