Here you can find the source of TimeStampMonthDayYear(Timestamp timestamp)
public static String TimeStampMonthDayYear(Timestamp timestamp)
//package com.java2s; /**//from w ww. j a v a 2 s .co m * ***************************************************************************** * * Project : ServicesBay V1 * * Package : * * Date : Feb 16, 2015, 7:53 PM * * Author : Services Bay Team * * File : DateUtility.java * * Copyright 2015 Miracle Software Systems, Inc. All rights reserved. MIRACLE * SOFTWARE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * ***************************************************************************** */ import java.sql.Timestamp; import java.text.SimpleDateFormat; public class Main { private static final SimpleDateFormat monthDayYearformatter = new SimpleDateFormat("MMMMM dd, yyyy"); public static String TimeStampMonthDayYear(Timestamp timestamp) { if (timestamp == null) { return null; } else { return monthDayYearformatter.format((java.util.Date) timestamp); } } }