Here you can find the source of toDateMidnight(java.util.Date d)
public static DateMidnight toDateMidnight(java.util.Date d)
//package com.java2s; //License from project: Apache License import org.joda.time.DateMidnight; import org.joda.time.DateTimeZone; public class Main { public static DateMidnight toDateMidnight(java.sql.Date d) { // TODO - confirm this conversion always works, esp. across timezones DateMidnight dm = (d == null ? null : new DateMidnight(d)); return dm; }/*from w ww.j a v a 2s . c o m*/ public static DateMidnight toDateMidnight(java.util.Date d) { // TODO - confirm this conversion always works, esp. across timezones DateMidnight dm = (d == null ? null : new DateMidnight(d)); return dm; } public static DateMidnight toDateMidnight(java.sql.Date d, String timeZoneID) { // TODO - confirm this conversion always works, esp. across timezones DateMidnight dm = (d == null ? null : new DateMidnight(d, DateTimeZone.forID(timeZoneID))); return dm; } public static DateMidnight toDateMidnight(java.util.Date d, String timeZoneID) { // TODO - confirm this conversion always works, esp. across timezones DateMidnight dm = (d == null ? null : new DateMidnight(d, DateTimeZone.forID(timeZoneID))); return dm; } }