Package org.joda.time

Examples of org.joda.time.DateTime.toDateMidnight()


        case VALUE_STRING:
            DateTime local = parseLocal(jp);
            if (local == null) {
                return null;
            }
            return local.toDateMidnight();
        }
        throw ctxt.wrongTokenException(jp, JsonToken.START_ARRAY, "expected JSON Array, Number or String");
    }
}
View Full Code Here


      mother.setGestationalAge(gestationalAge);
      mother.setLmp(null);
    } else {
      DateTime lmpEthiopicDate = new DateTime(year, month, day, 12, 0, EthiopicChronology.getInstance());
      DateTime lmpDate = lmpEthiopicDate.withChronology(GregorianChronology.getInstance());
      mother.setLmp(lmpDate.toDateMidnight().toDate());
      mother.setGestationalAge(null);
    }
    mother.setEdd(dateTimeService.parseAmharicDateString(edd));

        if (postId == 0) {
View Full Code Here

      mother.setGestationalAge(gestationalAge);
      mother.setLmp(null);
    } else {
      DateTime lmpEthiopicDate = new DateTime(year, month, day, 12, 0, EthiopicChronology.getInstance());
      DateTime lmpDate = lmpEthiopicDate.withChronology(GregorianChronology.getInstance());
      mother.setLmp(lmpDate.toDateMidnight().toDate());
      mother.setGestationalAge(null);
    }
    mother.setEdd(dateTimeService.parseAmharicDateString(edd));
    if (postId == 0) {
      mother.setGott(null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.