Java Date Create toDate()

Here you can find the source of toDate()

Description

to Date

License

Open Source License

Declaration

public static String toDate() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    private static SimpleDateFormat daysParse = new SimpleDateFormat("yyyyMMdd");

    public static String toDate() {
        Date date = new Date();
        return daysParse.format(date);
    }//from w  w  w.  jav a2  s .  c  o  m
}

Related

  1. longArrayTODateArray(long[] dates_s, SimpleDateFormat dateformat)
  2. longToDate(long time)
  3. objectToDate(Object Obj)
  4. timeToDate()
  5. toDate()
  6. toDate(Calendar date)
  7. toDate(Date d)
  8. toDate(final Calendar calendar)
  9. toDate(final Date date)