My Date constructor is deprecated and highlighted in Yellow.
How can I use Calendar.Set() to resolve this issue. I have called both import java.util.Calendar; and date.
Code is below. Thanks in advance.
Format f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss z");
Date d = new Date(f.format(geoState.getString("fireTime")));
temp.setFireTime(d);