Here you can find the source of truncateTime(String dateString)
public static String truncateTime(String dateString)
//package com.java2s; /*L/*from w w w . j a v a 2s . co m*/ * Copyright ScenPro Inc, SAIC-F * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cadsr-cdecurate/LICENSE.txt for details. */ public class Main { public static String truncateTime(String dateString) { String retVal = dateString; // GF30779 if (dateString != null) { int i = dateString.indexOf(" "); if (i > -1) { retVal = dateString.substring(0, i); } } System.out.println("******* at line 28 of AdministeredItemUtil.java" + retVal); return retVal; } }