Here you can find the source of convertTFormatToCDATime(String tDate)
Parameter | Description |
---|---|
tDate | a parameter |
public static String convertTFormatToCDATime(String tDate) throws Exception
//package com.java2s; import java.text.DateFormat; import java.util.Date; import java.util.Calendar; public class Main { private static DateFormat cdaDateFormat = null; /**/*ww w. j a v a 2 s . co m*/ * * convert T-format date to CDA format date. * * * * @param tDate * * @return */ public static String convertTFormatToCDATime(String tDate) throws Exception { if (tDate == null || tDate.length() < 0) return null; // today date if (tDate.equalsIgnoreCase("T")) convertToCDATime(Calendar.getInstance().getTime()); throw new Exception("Need to be implemented!"); } public static String convertToCDATime(Date date) { return cdaDateFormat.format(date); } }