Java Day of parseDay(int time)

Here you can find the source of parseDay(int time)

Description

parse Day

License

Open Source License

Declaration

public static String parseDay(int time) 

Method Source Code

//package com.java2s;
/*//from  www.ja va2s .c  o  m
 * Copyright 2010 Mttang.com All right reserved. This software is the
 * confidential and proprietary information of Mttang.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Mttang.com.
 */

import java.text.SimpleDateFormat;

public class Main {
    static final SimpleDateFormat yyyyMMdd = new SimpleDateFormat("yyyy-MM-dd");

    public static String parseDay(int time) {
        return yyyyMMdd.format(new java.util.Date(time * 1000L));
    }
}

Related

  1. nowDayString()
  2. parseBirthday(String r)
  3. parseCalendarDayFormat(String strDate)
  4. parseDay(Date value, String defaultValue)
  5. parseDay(final String day)
  6. parseDay(String str, String type)
  7. parseDayTime(long ts)
  8. parseFromDays(String date)
  9. plusDay(Date date, int day)