| | |
| | | map.put("DA", s.getDeparture() == null ? "" : s.getDeparture()); |
| | | |
| | | Date et = s.getEndtime(); |
| | | String year_et = null; |
| | | String month_et = null; |
| | | String day_et = null; |
| | | if (et != null) { |
| | | SimpleDateFormat formatter_et = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | String date_et = formatter_et.format(et); |
| | | String year_et = date_et.substring(0, 4); |
| | | String month_et = date_et.substring(5, 7); |
| | | String day_et = date_et.substring(8, 10); |
| | | year_et = date_et.substring(0, 4); |
| | | month_et = date_et.substring(5, 7); |
| | | day_et = date_et.substring(8, 10); |
| | | } |
| | | |
| | | map.put("AY", year_et == null ? "" : year_et); |
| | | map.put("AM", month_et == null ? "" : month_et); |