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: Logic.java   Source Code and License Vote up 6 votes
private void previewPDFDoc(String fileName)//	WDEV-15210
{
	StringBuilder filePath = new StringBuilder();

	filePath.append(ConfigFlag.GEN.FILE_SERVER_URL.getValue());

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

	filePath.append(fileName);

	engine.openUrl(filePath.toString());
}