According to the requirement i want to get a unique reference according to following format.
Reference should be = 15 Chars Date Format(yyyy-MM--dd) + ZERO`s + Id ; ex 1 = 201911070000181 ex 2 = 201911070000090
In the code sample i have shown date as string and Id as string can anyone help me here? Thanks.
Date today = Utils.getCurrentDateByTimeZone(environment.getProperty(TIME_ZONE));
String pattern = "yyyyMMdd";
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);
String date = simpleDateFormat.format(today);
String merchantId = String.valueOf(transactionData.getMerchant().getMerchantId());