Thanks. That worked very well. Now let us say that I have two calendar controls and I want to compare whether one date is greater or smaller then the other one. Would I just use the return value and compare them? I am currently at home so I can't try it out - however I thought I can ask for tomorrow...