Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String reverseFormatDateEntry(String date) {
        if (date == null || date.isEmpty() || date.equals("0")) {
            return "";
        }

        return date.substring(6, 8) + "/" + date.substring(4, 6) + "/" + date.substring(0, 4);
    }
}