Results 1 to 5 of 5
  1. #1
    vivek chhabra is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: need to seperate date from a string

    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
    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)

  3. #3
    vivek chhabra is offline Member
    Join Date
    Jul 2012
    Posts
    2
    Rep Power
    0

    Default 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

  4. #4
    cselic is offline Senior Member
    Join Date
    Apr 2010
    Location
    Belgrade, Serbia
    Posts
    278
    Rep Power
    5

    Default 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?

  5. #5
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default Re: need to seperate date from a string

    Can I please request you to give me some example code in this matter.
    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 context

Similar Threads

  1. string date to formatted date string
    By reach2sudhakar in forum New To Java
    Replies: 4
    Last Post: 06-20-2011, 10:06 AM
  2. String to date conversion
    By nn12 in forum New To Java
    Replies: 4
    Last Post: 11-04-2010, 07:59 AM
  3. converting string (GMT date) to date in US time.
    By JRuyechan in forum New To Java
    Replies: 1
    Last Post: 10-15-2010, 07:07 AM
  4. convert String date to Date
    By computerbum in forum New To Java
    Replies: 7
    Last Post: 09-18-2010, 03:26 PM
  5. Replies: 7
    Last Post: 11-03-2009, 02:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •