Java Time Format formatStrDateTime(String stringDateTime)

Here you can find the source of formatStrDateTime(String stringDateTime)

Description

format Str Date Time

License

Open Source License

Declaration

public static String formatStrDateTime(String stringDateTime) 

Method Source Code

//package com.java2s;

public class Main {

    public static String formatStrDateTime(String stringDateTime) {
        stringDateTime = stringDateTime.replaceAll(":", "");
        stringDateTime = stringDateTime.replaceAll("-", "");
        stringDateTime = stringDateTime.replaceAll(" ", "");
        return stringDateTime;
    }//from w w  w  . j av a2  s.c o m
}

Related

  1. formatRuntime(long runtime)
  2. formatRuntime(long time, boolean fixedlength)
  3. formatSample(final int aValue, final long aTimestamp)
  4. formatSignificantElapsedTime(final long seconds)
  5. formatStartRowKeyString(String id, String timestampStart)
  6. formatString(String agentId, long agentStartTime, long transactionSequence)
  7. formattedStats(String pExecTime, int pTxns)
  8. formattedUnixTime()
  9. formatTime(byte[] btValue, int iOffset, int iLength)