How to add date and time seperately in java :         static final String DATE_FORMAT = "yyyy-MM-dd";
        static final String TIME_FORMAT = "HH:mm:ss";
        private static final int ADD_MINUTES = 2;
        static final String FromDate = "2016-01-01 00:00:00";
    
        public static void main(String[] args) throws Exception {
    
            DateFormat df = new SimpleDateFormat(DATE_FORMAT);
            DateFormat d_f = new SimpleDateFormat(DATE_FORMAT);
            DateFormat tf = new SimpleDateFormat(TIME_FORMAT);
            Calendar cal = Calendar.getInstance();
            cal.setTime(df.parse(FromDate));
    
                    cal.add(Calendar.MINUTE, ADD_MINUTES);
                    record.append("\t");
                    record.append(d_f.format(cal.getTime()));
                    record.append("\t");
                    record.append(tf.format(cal.getTime()));
                    record.append("\t");
                    records.add(record.toString());
    }
Here i want to add date and time seperately i mean in different tab, used \t still i am not getting the required output.

