Results 1 to 4 of 4

Thread: Calendar

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2006
    Posts
    18

    Calendar

    Hi everyone, I have this really noob question... I am trying to use a calendar control, but I need to find out what day of the week it is because, I want to use the weekdayname function to find the name of the day... can anyone help me out...

  2. #2
    Hyperactive Member
    Join Date
    Aug 2003
    Location
    Wigan, UK
    Posts
    291

    Re: Calendar

    Use the WeekDay function aswell.
    VB Code:
    1. WeekdayName(Weekday(Calendar1.Value, vbUseSystemDayOfWeek))

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2006
    Posts
    18

    Re: Calendar

    Also... when I try to get the month name using the month name function, I get it when I haven't changed the month, but when I actually lets say go to another month... Everytime I get December as the month... Anyclue??

  4. #4
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Calendar

    A couple of things:

    - when asking about something isn't working you need to post some code (if any) associated with your question
    - if you're using MS Calendar control then I suggest you switch to DateTimePicker or MonthView (both could be found in MS Windows Common controls 6.0) - Calendar control is nonly designed for VBA (MS Office) apps.

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