Java yyyy formatRTGSDate(java.util.Date date)

Here you can find the source of formatRTGSDate(java.util.Date date)

Description

This method converts a JDBC format date into a String

License

Open Source License

Parameter

Parameter Description
date JDBC format date

Return

date in "yyyyMMdd" format

Declaration

public static String formatRTGSDate(java.util.Date date) 

Method Source Code

//package com.java2s;
/*//from   w w  w. ja  v  a2  s . c  o  m
 * @(#)ConversionUtils.java
 *
 * Copyright by ObjectFrontier, Inc.,
 * 12225 Broadleaf Lane, Alpharetta, GA 30005, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of ObjectFrontier, Inc. 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 ObjectFrontier.
 */

import java.text.SimpleDateFormat;

public class Main {
    protected static SimpleDateFormat rtgsUserDateFmt = new SimpleDateFormat("yyyyMMdd");

    /**
     * This method converts a JDBC format date into a <code>String</code>
     *
     * @param   date JDBC format date
     *
     * @return  date in "yyyyMMdd" format
     */
    public static String formatRTGSDate(java.util.Date date) {

        if (date == null)
            return null;

        return rtgsUserDateFmt.format(date);
    }
}

Related

  1. formatFromDate(Date date)
  2. formatG(Date date)
  3. formatHL7TSFormat4Date(Date time)
  4. formatJJJJMMTT(long time)
  5. formatPGNDate(final Date pDate)
  6. formatShortDate(Date date)
  7. formatSimpleDate(Date date)
  8. formatSimpleGermanDateString(Date date)
  9. formatSpaydDate(Date date, TimeZone tz)