pls help format = 2004-07-09T00:00:00.0000000+08:00 ???

H

HELPme

i hope somebody will help me on this..am still not using sp1 by the way... so please bear with me..

i just want to compare the current date that has a format of 07/14/2004 and then compare it to the xml date data (from infopath) that is
2004-07-09T00:00:00.0000000+08:00.

is there an easier way to compare these two dates without dissecting the date that comes from infopath?

thank you in advance!
 
J

Jerry Thomas [MSFT]

The XML date can be formatted into a more recongnizable form.
Open the properties of the control (right click and select Properties)
Click "Format"
Select the format style you want.

Are you trying to say "If CurrentDate != XML Date" then show an error?
You can set conditional formating (Properties / Display tab) to
"field1" "is not equal to" expression "Today()" , set Shading to Red

Does that solve your problem?

--
Jerry Thomas
Microsoft Office InfoPath
---------------------------------------
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.


HELPme said:
i hope somebody will help me on this..am still not using sp1 by the way... so please bear with me..

i just want to compare the current date that has a format of 07/14/2004
and then compare it to the xml date data (from infopath) that is
 
H

HELPme

thank you for your reply. but i think this feature is possible in sp 1..which i dont have yet and we are currently not using it. :(
 

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