Since Joda-Time doesn't parse time zone names, this is tricky. If you always know the zone name will be 'EDT', you could build up a parser that hard codes that part as text. Then the parsed date will naturally ignore the zone.
And yes, you parseDateTime() then call toYearMonthDay() Stephen On 17/07/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > What's the recommended way to parse a String into a YearMonthDay? > First call DateFormatter.parseDateTime(string) and then new > YearMOnthDay(instant)? > What I want is to get exactly the year, month, day specified in the input > string, regardless of time zones. > For example, "Mon Jul 17 01:44:10 EDT 2006" should parse into (2006,7,17) > even if I'm running in PDT. > > > -- > John Alan McDonald > [EMAIL PROTECTED] > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
