Display Date in expression box time zone Error

S

Steve Mathieu

We try to display date in an expression box but the date
that was display in not in the right time zone.

If we use a date picker the date is ok, but not in the
expression box. What can we to to avoidthis proble of
displaying date using an expressio nbox?

Thanks.
 
A

Andrew Ma [MSFT]

Have you tried using a textbox control and then making it read-only?

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers no rights.
Use of any included script sample are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.
 
J

Java

1) Double click on your Expression box ( design mode ) an Format as
DATE then click Format and choose any of the formats that starts wit
*. That should pick the time zone from the client PC.

If you decide to use a Text Box instead then:
2 ) On the Text Box properties, select Data Type and choose DATE as th
type of data, then press the Format button and choose any format tha
start with * ( asterisk ) on the sample list.

Items that have an (*) asterisk are tied to the date settings used b
the operating system.

If that doesn't work try backwards, use the time formats that don'
start with (*) on the sample list.

hope this helps.

PS: if you don't have SP1 get it! I think it is still on beta a
available on MS Site.

Cheers.
Javier.
*Have you tried using a textbox control and then making i
read-only?

--
Andrew J. Ma
Software Test Engineer
Microsoft Office InfoPath
http://blogs.msdn.com/ajma
---------------------------------------
This posting is provided "As Is" with no warranties, and confers n
rights.
Use of any included script sample are subject to the terms specifie
at
http://www.microsoft.com/info/cpyright.htm.
Please do not send email directly to this alias. This alias is for
newsgroup purposes only.


message


-
Jav
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top