/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.mifosplatform.template.domain;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class TemplateFunctions {
public static String now() {
final DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm");
final Date date = new Date();
return dateFormat.format(date);
}
}