How to get Current DateTime in Rules ?

Hi All

I am sending a message from bw ( just properties ) to BE and i am trying to print System.debugout messages for the incoming message preperties.

When i try to use DateTime.now() function - It prints a weird message -

Received New Order DateTime Is   java.util.GregorianCalendar[time=1361644371725,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="America/Chicago",offset=-21600000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/Chicago,offset=-21600000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2013,MONTH=1,WEEK_OF_YEAR=8,WEEK_OF_MONTH=4,DAY_OF_MONTH=23,DAY_OF_YEAR=54,DAY_OF_WEEK=7,DAY_OF_WEEK_IN_MONTH=4,AM_PM=1,HOUR=0,HOUR_OF_DAY=12,MINUTE=32,SECOND=51,MILLISECOND=725,ZONE_OFFSET=-21600000,DST_OFFSET=0]

BW has this Current-DateTIme and used to get it in a neat fashion . Any ideas or any other way we can get the same format in the BE aswell ?

Thanks

(1) Answer

Login