Here you can find the source of convertDate(long datenum)
private static String convertDate(long datenum)
//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); } }