Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27749

how to compare date and get latest one

X-Received by 10.67.2.101 with SMTP id bn5mr890270pad.29.1394723793386; Thu, 13 Mar 2014 08:16:33 -0700 (PDT)
X-Received by 10.50.111.11 with SMTP id ie11mr58284igb.2.1394723793224; Thu, 13 Mar 2014 08:16:33 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!l13no5979879iga.0!news-out.google.com!h8ni130igy.0!nntp.google.com!ur14no6753621igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Thu, 13 Mar 2014 08:16:32 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=203.91.213.69; posting-account=jTfW2goAAAAQ22MIGwAE2QBL_Qjp5rLZ
NNTP-Posting-Host 203.91.213.69
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <374d2575-df01-45de-8267-4c9b579e56be@googlegroups.com> (permalink)
Subject how to compare date and get latest one
From Navneet Mathpal <navneetmathpal93@gmail.com>
Injection-Date Thu, 13 Mar 2014 15:16:33 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:27749

Show key headers only | View raw


hi ,

For insertion of time i am using Date date=new Date();
all the date are getting inserted in mongodb. now i want the latest time and date from those record which i have inserted
how can i do this using java,
I am using spring framework

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

how to compare date and get latest one Navneet Mathpal <navneetmathpal93@gmail.com> - 2014-03-13 08:16 -0700
  Re: how to compare date and get latest one Roedy Green <see_website@mindprod.com.invalid> - 2014-03-13 23:42 -0700
    Re: how to compare date and get latest one Martin Gregorie <martin@address-in-sig.invalid> - 2014-03-14 21:20 +0000
      Re: how to compare date and get latest one Martin Gregorie <martin@address-in-sig.invalid> - 2014-03-14 22:11 +0000

csiph-web