Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Date;

public class Main {
    public static void main(String[] args) {
        java.sql.Timestamp ts1 = java.sql.Timestamp.valueOf("2012-04-06 09:01:10");
        java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2013-04-06 09:01:10");

        System.out.println(ts1.compareTo(new Date()));

    }
}