Android Time Format formatDate(String mounthStr)

Here you can find the source of formatDate(String mounthStr)

Description

format Date

Declaration

public static String formatDate(String mounthStr) 

Method Source Code

//package com.java2s;

public class Main {
    public static String formatDate(String mounthStr) {

        return mounthStr.substring(2, 4) + "/" + mounthStr.substring(4, 6)
                + "/" + mounthStr.substring(6, 8) + " "
                + mounthStr.substring(8, 10) + ":"
                + mounthStr.substring(10, 12);
    }//from w  w  w.j a  v a 2s  . com
}

Related

  1. dateToString(Time t)
  2. toISO8601Date(Time date)
  3. formatDisplay(int second)
  4. formatDateAndTime(int timestamp, String pattern)
  5. dateTimeFormat(String dateTime)
  6. dateTimeFormat(String dateTime)
  7. formatDateTime(String date, String format)
  8. formatTime(long time)