Getting the first and the last day of a week

A

ADumith

Hellos at alls;

I wonder to know how can get and put in a textbox or a label; the first and
the last day of a week; i mean:
If I open today the form; I should see in the first textbox this value
03-13-2006 and the second box this other value 03-25-2006.

Thank in advance.....
 
B

Bojana Marjanovic [MSFT]

There is no easy way to do this with InfoPath. While you can get today's
date, InfoPath does not have any information about days of the week and
would not know where the current date falls in the week.

You will have to communicate with a custom web service/database that has
this information. Or you could calculate it yourself using code.

-Bojana
 
Top