Java Code Examples for ims.framework.utils.Date.getYear()

The following are Jave code examples for showing how to use getYear() of the ims.framework.utils.Date class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: AvoinApotti   File:   Source Code and License Vote up 6 votes
private void previewPDFDoc(String fileName)//	WDEV-15210
	StringBuilder filePath = new StringBuilder();


	if (!(filePath.toString().endsWith("/") || filePath.toString().endsWith("\\")))
	Date date = new Date();
	int year = date.getYear();
	int month = date.getMonth();
	int day = date.getDay();
	filePath.append(year + "\\" + month + "\\" + day + "\\");