Java XML Date printDate(java.util.Date dt)

Here you can find the source of printDate(java.util.Date dt)

Description

print Date

License

Open Source License

Declaration

public static String printDate(java.util.Date dt) 

Method Source Code


//package com.java2s;
//License from project: GNU General Public License 

import java.util.Calendar;
import javax.xml.bind.DatatypeConverter;

public class Main {
    public static String printDate(java.util.Date dt) {
        if (dt == null) {
            return null;
        }//from www .ja v  a  2 s .com
        Calendar c = Calendar.getInstance();
        c.setTime(dt);
        return DatatypeConverter.printDate(c);
    }
}

Related

  1. getXMLDate(final Date date)
  2. getXSDDateTimeFromCalendar(Calendar calTime)
  3. isPreEIDAS(Date date)
  4. isValidDateUpdatedType(Calendar value)
  5. printDate(final Calendar date)
  6. printDateTime(final Date date)
  7. printDateUpdatedType(Calendar value)
  8. string2millis(String lexicalXSDDateTime)
  9. toDate(String date)