Results 1 to 2 of 2

Thread: Calendar Problem, HeLp!!

  1. #1

    Thread Starter
    Lively Member mrdarkwarez's Avatar
    Join Date
    Feb 2000
    Location
    Australia
    Posts
    113

    Post

    i'm trying to create a calendar program like the windows date/time in the sys tray, any ideas would be helpful!!

    the first problem i have is i can't get the total days in a month, any ideas on hoow to do this??
    thanx

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    Dim StartDate As Date
    Dim DaysInMonth As Integer

    StartDate=cdate("01/06/2000")

    DaysInMonth=DateDiff("d",StartDate,DateAdd("m",1,StartDate))

    That should do it. It'll find the days in June 2000.




    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width