but i only know how to print it out using System.out.prin tf
i have to print the yyyymmddnnn (where nnn is the serial no.)
Code:
int serialNo = 000; Calendar cal = Calendar.getInstance(); date = cal.get(Calendar.DATE); month = cal.get(Calendar.MONTH) + 1; year