Skip to Content
0
Former Member
Sep 29, 2005 at 06:39 AM

Changing the Time Zone attribute

172 Views

Hi,

I have an application where the current date and time is displayed on the view.

I have used the following lines of code to implement this.

String date_time = Calendar.getInstance().getTime().toString();

wdContext.currentContextElement().setDate_time(date_time);

This returns a value where the time zone is displayed in GMT i.e

Thu Sep 29 11:55:39 GMT+05:30 2005

But I need to display the time in CDT.

Can anyone let me know how we can achieve this?

Thanks in advance,

Reena