Java SQL Date From toDateMidnight(java.util.Date d)

Here you can find the source of toDateMidnight(java.util.Date d)

Description

to Date Midnight

License

Apache License

Declaration

public static DateMidnight toDateMidnight(java.util.Date d) 

Method Source Code


//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;
    }
}

Related

  1. toDate(Object obj)
  2. toDate(Object value)
  3. toDate(String dateString)
  4. toDate(String s)
  5. toDateFromString(String str)
  6. toDateStr(java.util.Date d)
  7. toSqlDate(Calendar calendar)
  8. toSqlDate(Date date)
  9. toSqlDate(Date date)