@Sree Venkata
You can do this using a combination of NiFi Expression Language (EL) functions:
${now()
:minus(${now():mod(86400000)})
:minus(43260000) :format('MM-dd-yyyy hh:mm:ss')
}
This EL statement takes now subtracts the remainder resulting from dividing now by 86400000 (number of milliseconds in 24 hours) and then subtracts an additional 43260000 (12 hours and 1 minute) from that result and finally formatting the output in the date format you are looking for.
I confirmed this EL statement by using it in an UpdateAttribute processor:
![7847-screen-shot-2016-09-21-at-125208-pm.png 7847-screen-shot-2016-09-21-at-125208-pm.png](https://community.cloudera.com/t5/image/serverpage/image-id/20495i35345000330F2230/image-size/medium?v=v2&px=400)
and if I look at the attributes on a FlowFile that was processed by the above, I see:
![7846-screen-shot-2016-09-21-at-123135-pm.png 7846-screen-shot-2016-09-21-at-123135-pm.png](https://community.cloudera.com/t5/image/serverpage/image-id/20496iFEDB9C3900C446F3/image-size/medium?v=v2&px=400)
You can see that the attribute "yesterday" is set to exactly one day earlier from "current time" and 11:59:00.
Thanks,
Matt