Discussions

Web tier: servlets, JSP, Web frameworks: Is there an HTTP address returning today's date ?

  1. Hi all,
    well this question isn't exclusive about Java web tier but it I hope somebody has got an answer for it.
    I'd like to read todays's date opening an URLConnection, so
    does anybody know if there's a web address that returns todays'
    date in any format ?
    it's something like a minimal web service, as it's accessed via
    HTTP protocol..........

    Thanks a lot
    Francesco
  2. I don't know if there are any services that return the date in http format, but you can retrive the date from time.nist.gov or from any other time server using ntp (network time protocol). I'm not sure about the details, but I think it should be pretty simple.
    If you solve it post the answer here!