get Image File Name Date Suffix - Android Graphics

Android examples for Graphics:Image File

Description

get Image File Name Date Suffix

Demo Code


//package com.java2s;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    public static String getDateSuffix() {
        SimpleDateFormat formatter = new SimpleDateFormat(
                "-yyyy-MM-dd-HH-mm-ss");
        Date curDate = new Date(System.currentTimeMillis());
        return formatter.format(curDate);
    }//  w w w.j a  va 2 s  .  co m
}

Related Tutorials