Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
  2. Date date = new Date();
  3. char[] arr = dateFormat.format(date).toCharArray();
  4. arr[10] = '-';
  5.  
  6. StringBuilder fileName = new StringBuilder();
  7.  
  8. fileName.append('-').append(arr);
  9.  
  10. FileWriter fw = new FileWriter(s_DomainLink + fileName.toString() + ".html");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement