Results 1 to 2 of 2
  1. #1
    Join Date
    May 2010
    Posts
    22
    Rep Power
    0

    Default how to compare two timestamp

    from database
    Java Code:
    2010-06-08 00:00:56
    2010-06-08 22:05:10
    2010-06-08 22:12:43
    2010-06-08 22:13:43
    2010-06-08 22:14:43
    2010-06-08 22:19:18
    2010-06-08 22:20:18
    2010-06-08 22:21:18
    2010-06-08 22:37:47
    2010-06-08 22:39:47
    2010-06-08 22:43:48
    2010-06-08 22:44:48
    2010-06-08 22:45:40
    2010-06-08 22:46:38
    2010-06-08 22:48:34
    2010-06-08 22:49:34
    2010-06-08 22:50:15
    2010-06-08 22:54:00
    2010-06-08 23:00:01
    2010-06-08 23:59:09
    i need this type of output

    2010-06-08 00:00:56
    2010-06-08 22:05:10
    -->output
    2010-06-08 22:12:43
    2010-06-08 22:13:43
    -->output
    2010-06-08 22:14:43
    2010-06-08 22:19:18
    -->output
    2010-06-08 22:20:18
    2010-06-08 22:21:18
    -->output
    2010-06-08 22:37:47
    2010-06-08 22:39:47
    -->output
    2010-06-08 22:43:48
    2010-06-08 22:44:48
    -->output
    2010-06-08 22:45:40
    2010-06-08 22:46:38
    -->output
    2010-06-08 22:48:34
    2010-06-08 22:49:34
    -->output
    2010-06-08 22:50:15
    2010-06-08 22:54:00
    -->output
    2010-06-08 23:00:01
    2010-06-08 23:59:09
    ->output

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default

    How many times?
    You have been told time and again how to do this!

Similar Threads

  1. Send object via web service, with a java.sql.Timestamp attribute
    By diegofsza in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 08-15-2009, 11:40 PM
  2. Replies: 2
    Last Post: 12-08-2008, 03:42 PM
  3. Timestamp in SQL format
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-10-2008, 11:37 AM
  4. Date as String to TimeStamp
    By ironballs in forum Advanced Java
    Replies: 1
    Last Post: 08-01-2007, 01:43 PM
  5. Compare 2 XML
    By Peter in forum XML
    Replies: 1
    Last Post: 07-05-2007, 02:58 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
  •