> I should have specified that the kind of Instant I'm working with is a > LocalDate. It doesn't have getMillis.
LocalDate isn't actually an Instant (ie, it doesn't represent a specific instant in time), it's a representation of an abstract calendar day with no time or timezone information, so you can't get the millisecond value for it because it doesn't represent one. > Is the best way to get the > milliseconds to convert that to a DateTime and then call getMillis > like this? > > long millis = birthday.toDateTimeAtCurrentTime().getMillis(); Converting it to a DateTime, which does represent a specific instant in time, via a method like toDateTimeAtCurrentTime() or toDateTimeAtStartOfDay() is probably what you want to do, yep. - Adam ------------------------------------------------------------------------------ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest