Java Timestamp TimeStampMonthDayYear(Timestamp timestamp)

Here you can find the source of TimeStampMonthDayYear(Timestamp timestamp)

Description

Time Stamp Month Day Year

License

Open Source License

Declaration

public static String TimeStampMonthDayYear(Timestamp timestamp) 

Method Source Code

//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);
        }
    }
}

Related

  1. timestamp(int year, int month, int day, int hour, int minute, int second, int nanosecond)
  2. timestamp(Long param)
  3. timestampInMs()
  4. timestampIntToTimestamp(long timestampInt)
  5. timestampIsEquals(Timestamp timestamp1, Timestamp timestamp2)
  6. TimestampNow()
  7. timestampNow()
  8. timestampOf(final ZonedDateTime time)
  9. timestampPlusDay(java.sql.Timestamp ts, int iDayPlus)