import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
public class jdbc
{
static SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMdd");
static Date date = new Date( );
static SimpleDateFormat ft = new SimpleDateFormat ("yyyyMMdd");
static String now = ft.format(date);
public static void main(String args[]) throws ParseException
{
date=sdf.parse(now);
Date b=null;
String a="20190224";
b=sdf.parse(a);
long c=b.getTime()-date.getTime( );
int d=(int)(c/86400000);
System.out.println(d);
}
}