logo

Laurent Updates Calendar Code

Laurent deWalick has taken my calendar code from Sunday's post and created probably the first live version. Laurent's version is probably better than mine because it uses the new Domino 6 functions and corrects a few of my oversights. For example, my line:

endDate:=@Adjust(@Date( @Year(@Adjust(startDate; 0;1;0;0;0;0)); @Month(@Adjust(startDate; 0;1;0;0;0;0)); 1); 0; 0; -1; 0; 0; 0);

Is quite a bit shorter thanks to Laurent:

endDate :=@Adjust(startDate; 0;1;-1;0;0;0);

Hey, I never said I was perfect... I was in a rush!

Today I discovered that this doesn't work with IIS/Domino. Damn!

Comments

    • avatar
    • Laurent de Walick
    • Sun 12 May 2002 16:22

    endDate :=@Adjust(startDate; 0;1;-1;0;0;0); was not working, so I had to modify it in:

    endDate:=@Adjust(@Adjust(startDate; 0;1;0;0;0;0);0;0;-1;0;0;0);

    Domino first subtracted the day, so it went to november 30th and then added a month to have only 30 days in december.

    • avatar
    • Jake
    • Wed 12 Jun 2002 03:49

    Thanks Laurent. I too had not tested it yet. Mental note: Check that what you blog is true before you press submit!!

  1. No need to show me how to do it, but this calender lark has me thinking. As an interface component I would see it being handy to have a calender like structure but each 'calender block' being a year (instead of a month) and each entry being a week.

    So you'd have 2002 with 52 entries, and so on. I assume this is possible?

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment:


About This Page

Written by Jake Howlett on Thu 5 Dec 2002

Share This Page

# ( ) '

Comments

The most recent comments added:

Skip to the comments or add your own.

You can subscribe to an individual RSS feed of comments on this entry.

Let's Get Social


About This Website

CodeStore is all about web development. Concentrating on Lotus Domino, ASP.NET, Flex, SharePoint and all things internet.

Your host is Jake Howlett who runs his own web development company called Rockall Design and is always on the lookout for new and interesting work to do.

You can find me on Twitter and on Linked In.

Read more about this site »

More Content