Date Calculation

M

Markos

I'm having issues (mostly associated with my lack of programming
ability) trying to calculate a date given an end date. I realise
Infopath can't do it and have been looking for samples. I have found
alot of references but I'm unable to put together a working solution
escpecially how to add them into Infopath.
Basically it is EndDate - n (n being any number of days)

Any help would be appreciated.

Thanks in advance.
 
S

Scott L. Heim [MSFT]

Hi Markos,

Execute a search in this Newsgroup for my name: Scott Heim as I addressed a
very similar issue for another person not long ago and provided sample
code. The only caveat is that it was specific to calculating "time" and not
"days." However, the basic code is there and if you have any trouble
modifying it to calculate just the days, let me know and I'll modify the
sample and re-post it.

Best regards,

Scott L. Heim
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

JenneferD

I have a similar issue, and a similar lack of VBScript skills. I have built
a form where I need to fill in a field with a date that is one day less than
the date of the field next to it.

Field2Date = Field1Date - 1

I tried modifying the script you wrote for the other person, but I had no
success. Can you help?

Thank you!
 

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