Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; public class Main { public static String getExtractDbFileName(int version) { //File format:race_v + DB_VERSION + _ + timestamp Long time = System.currentTimeMillis(); String dateStr = new SimpleDateFormat("yyyyMMdd_kkmmss").format(time); return "Race_v" + Integer.toString(version) + "_" + dateStr; } }