Java Date Create toDateQueryFormat(Date value)

Here you can find the source of toDateQueryFormat(Date value)

Description

Transforms a Date instance into a String using the default date parser.

License

Apache License

Declaration

public static String toDateQueryFormat(Date value) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static final String ISO8601_FMT = "yyyy-MM-dd'T'00:00:00'Z'";

    /**/*  w  w w .ja va 2  s .co  m*/
     * Transforms a Date instance into a String using the default date parser.
     */
    public static String toDateQueryFormat(Date value) {
        return new SimpleDateFormat(ISO8601_FMT).format(value);
    }
}

Related

  1. toDate(Object value)
  2. toDateFormat(Date date)
  3. toDateFromLong(Long time)
  4. toDateHeader(long value)
  5. toDateList(Collection list)
  6. toDateStr(Date d)
  7. ToDateStr(Date dt)
  8. toDateStr(Object o)
  9. toDateText(Date date)