Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Current date in cloverleaf
This is the first time i am working on cloverleaf. And i would really appreciate your help.
How can i declare current date in cloverleaf. I have the following logic.
if(Integer.parseInt(strtmp.substring(0,4)) > currentYear)
{
getGuardian_Emp_Detail_out().getDetail(record_counter).setTermDate(“”);
Please help me
You can make use of the clock command in tcl, if using tcl.
clock format [clock scan now] -format “%Y%m%d”
or if in a translate there are many @variables that get this info for you.
@date, @now, @day, etc….
I understood the clock temp variable. But how can we declare current date. Could you give me an example
Thanks a lot
Like this:
set dateTime [clock format [clock scan now] -format %Y%m%d%H%M%S]
-- Max Drown (Infor)