Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String formatMDHM(String timeStr) { return timeStr.substring(5, 16).replace("-", "."); } }