Created
October 11, 2018 18:34
Revisions
-
NEO created this gist
Oct 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ import java.util.Date; import java.text.SimpleDateFormat; public class DateDemo { public static void main(String args[]) { Date dNow = new Date( ); SimpleDateFormat ft = new SimpleDateFormat ("yyyy.MM.dd_hh.mm.ss"); String nombre_archivo = "archivos_" + ft.format(dNow)+".zip"; System.out.println(nombre_archivo); } }