Commit 8c1cdb13 authored by kpandey's avatar kpandey

Updated changes for date

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@189501 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5ffa5df5
......@@ -674,6 +674,8 @@ public class DashboardUtil
{
JSONArray filter= filters.optJSONArray("filter");
JSONArray filterTemp=filter;
E12GenericUtility genericUtility = new E12GenericUtility();
String sourceDateFormat=genericUtility.getApplDateFormat();
if(filter !=null)
{
......@@ -691,8 +693,8 @@ public class DashboardUtil
System.out.println("defaultValue::::"+defaultValue);
if(defaultValue ==null || defaultValue instanceof JSONObject) {
if(type.equalsIgnoreCase("4")) {
System.out.println("Inside if processDashboardFilter 4::::");
fil.put("default_value", new SimpleDateFormat("dd/MM/yyyy").format(new Date()));
System.out.println("Inside if processDashboardFilter 4::::"+sourceDateFormat);
fil.put("default_value", new SimpleDateFormat(sourceDateFormat).format(new Date()));
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment