Java String Truncate truncateTime(String dateString)

Here you can find the source of truncateTime(String dateString)

Description

truncate Time

License

BSD License

Declaration

public static String truncateTime(String dateString) 

Method Source Code

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

Related

  1. truncateStringToUtf8(final String original, final int maxBytes)
  2. truncateSubjectText(String subject)
  3. truncateTestName(String test)
  4. truncateText(String str, int lower, int upper, String appendToEnd)
  5. truncateText(String text, int maxCharLength)
  6. truncateToFirstLine(String string)
  7. truncateToLength(String inputString, int truncateLength)
  8. truncateToMaxLen(String input, int len)
  9. truncateType(String s)