Java Long Number to Date convertDate(long datenum)

Here you can find the source of convertDate(long datenum)

Description

convert Date

License

Mozilla Public License

Declaration

private static String convertDate(long datenum) 

Method Source Code

//package com.java2s;
/*//from   www .  jav a2  s.  c  o  m
 * The contents of this file are subject to the Mozilla Public License
 * Version 1.1 (the "License");  you may not use this file except in 
 * compliance with the License.  You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
 * the specific language governing rights and limitations under the License.
 *
 * The Original Code is EON Guideline Execution Engine.
 *
 * The Initial Developer of the Original Code is Stanford University. Portions
 * created by Stanford University are Copyright (C) 2009.  All Rights Reserved.
 *
 * The EON Guideline Execution Engine was developed by Center for Biomedical
 * Informatics Research (http://www.bmir.stanford.edu) at the Stanford University
 * with support from the National Library of Medicine.  Current
 * information about the EON project can be obtained at 
 * http://www.smi.stanford.edu/projects/eon/
 *
 */

import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    private static String convertDate(long datenum) {
        Date date = new Date(datenum);
        SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy");
        return df.format(date);
    }
}

Related

  1. convert(long number)
  2. convert(long time)
  3. convert(long value, double[] factors, String[] unites)
  4. convert(Long[] targets)
  5. convert2long(String date, String format)
  6. convertDate(long millisecs)
  7. convertDate(long timestamp)
  8. convertDate(Long uTime, SimpleDateFormat dateFormat)
  9. convertDateFromLong(Long val)