cancel
Showing results for 
Search instead for 
Did you mean: 

CurrentDate function?

Former Member
0 Kudos

Anyone have problems with the currentDate function? I'm seeing very odd times reported back for the function. They don't match the system date or SAP date etc.

So.. here's my questions:

1. Where does this function get it's "current" information for date and time?

2. Anyone had problems with this being accurate?

Also, this function seems to work perfectly for the date fields. It's just the time that's not working.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi TOM,

I have the same problem as you solved it?

thanks

umberto


Former Member
0 Kudos

Hi,

Check your XI system TIME ZONE setting. Time displayed under System time and TimZone will be different.

Thanks,

Sasi

Former Member
0 Kudos

The timezone and system time are all matching and are set to EST. I've also checked ALL the XI user ID's and they're at EST also.

It looks like I'm exactly four hours ahead when I use the function currentDate to populate an element in the messages.

Former Member
0 Kudos

Where is the TimeZone setting set in XI? Is this at the OS level or is this in J2EE setting?

Thanks

Ashish

Former Member
0 Kudos

What about creating a userdefined function like the following;

String pattern = "dMMyyyy"; // or how you want the date tranformed

SimpleDateFormat formatter = new SimpleDateFormat(pattern);

Date today = new Date(); //current system time

return = formatter.format(today);

Else see http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html

if you want an other pattern.

It should be possible to change the locale which also is desribed in the like above.