public String showDateNow(int s) {
        Calendar cal = Calendar.getInstance();
        String hasil = "";
        if (s == 0) {
            SimpleDateFormat sdf = new SimpleDateFormat("dd MMM yyy");
            hasil = sdf.format(cal.getTime());
        }
        if (s == 1) {
            SimpleDateFormat sdf = new SimpleDateFormat("yyy-MM-dd");
            hasil = sdf.format(cal.getTime());
        }
        return hasil;
    }