Here you can find the source of generateTimestamp()
static public String generateTimestamp()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { /**/*from ww w. j a v a2 s . c o m*/ * Generate the current datetimestamp in the string formaat (YYYYMMDDHHSS) required in a * request to Realex. * * @return current timestamp in YYYYMMDDHHSS format */ static public String generateTimestamp() { return new SimpleDateFormat("yyyyMMddHHmmss").format(new Date()); } }