Here you can find the source of formatRTGSDate(java.util.Date date)
String
Parameter | Description |
---|---|
date | JDBC format date |
public static String formatRTGSDate(java.util.Date date)
//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); } }