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


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

Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string?

Newsgroups comp.lang.java.programmer
From Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Subject Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string?
References <4eca833c$0$6571$9b4e6d93@newsspool3.arcor-online.net>
Message-ID <slrnjcl3a0.fvg.avl@gamma.logic.tuwien.ac.at> (permalink)
Date 2011-11-21 17:41 +0000

Show all headers | View raw


Sven Fischer <Svenfischer2@email.com> wrote:
> Assume I have a date as a string with the pattern "dd.mm.yyyy".
> What is the easiest/shortest way to get the day of week (e.g. "MON" for Monday)
> from this date?

Look at java.text.SimpleDateFormat  (for parsing the string)
and at  java.util.Calendar          (for extracting the day of week)

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


Thread

Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? Svenfischer2@email.com (Sven Fischer) - 2011-11-21 16:58 +0000
  Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? jlp <jlp@jlp.com> - 2011-11-21 18:40 +0100
    Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? jlp <jlp@jlp.com> - 2011-11-21 18:45 +0100
      Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? Lew <lewbloch@gmail.com> - 2011-11-21 14:12 -0800
  Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-11-21 17:41 +0000
  Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? Mayeul <mayeul.marguet@free.fr> - 2011-11-21 19:17 +0100
  Re: Easiest/shortest way to get day of week (e.g. MON) from "dd.mm.yyyy" string? Roedy Green <see_website@mindprod.com.invalid> - 2011-11-21 10:25 -0800

csiph-web