Two questions about date´s - InfoPath Dev
in

InfoPath Dev

Two questions about date´s

Last post 11-17-2006 09:17 AM by Greg Collins. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-16-2006 05:43 AM

    • ThomasR
    • Not Ranked
    • Joined on 11-16-2006
    • Sweden
    • Posts 1

    Two questions about date´s

    Hi all

    Im working on a template in Infopath2007. And Ive come across two problems.

    the first problem is calculating months. I have 3 date fields. The first field is where I set a date, and then the other two fields should aggregate + one and + months ahead. So If I in the first field set 1 jan 2007, the second field should set the 1 feb, and the third field 1 March. Is there a way to do that? I cant use AddDays since it only count days and not months :-(

    The second problem that Ive stumbled upon is the date format. From my first field, I whana use a british format, example - 14 March 2001. But on the second field I dont whant to show years, just 14 March. Is there a way to build this?

    Rgds
    Thomas

  • 11-16-2006 10:10 AM In reply to

    Re: Two questions about date´s

    If you are using managed code, C#/VB, you can use the AddMonths() method.
  • 11-17-2006 09:17 AM In reply to

    Re: Two questions about date´s

    For your second question, if you go into the properties dialog for the control, you should be able to set the date format there. There is a button for chosing the format.
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.