Results 1 to 5 of 5

Thread: Days, Month, Year

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Days, Month, Year

    I get some help for this code
    but copy it as you like change
    month and days what you like.

    I put this code in Form Load event.
    vb Code:
    1. Dim MyDay As Variant
    2.  Dim MyMonth As Variant
    3.  Dim WD As Long
    4.  Dim MM As Long
    5.  Dim MyDate1, MyDate2, EngDays
    6.  
    7. '********************************* Date & Year
    8.  MyDate1 = StrConv(Format$(Date, "dd"), vbProperCase)
    9.  MyDate2 = StrConv(Format$(Date, "yyyy"), vbProperCase)
    10.  
    11.  '********************************* Days
    12.  MyDay = Array("Monday", "Tuesday", "Wednesday", "Thursday", "Fridag", "Saterday", "Sunday")
    13.  WD = Weekday(Now, vbMonday) 'day of week, where Monday is the 1st day of the week (1 based)
    14.  
    15.  '********************************* Month
    16.  MyMonth = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
    17.  MM = Month(Now)
    18.  
    19.  '************************* Day ************** Date *********** Month *****************Year
    20.  LabelDatumEng.Caption = MyDay(WD - 1) & " " & MyDate1 & " " & MyMonth(MM - 1) & " " & MyDate2
    21.  
    22.  '********************************** END Date Year
    Lenny
    Last edited by Hack; Oct 24th, 2011 at 10:59 AM. Reason: Added Highlight Tags

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Days, Month, Year

    Are you requesting help with your code or is it a demonstration? What does the code do?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Re: Days, Month, Year

    Hello Nightwalker

    the code is for a phonebook with one form in Swedish and one form
    in english as I have the national enviroment in swedish and
    my daughter (have the same enviroment as I) livs in booth canada and sweden she would to have it
    that when she goes to englis form it shall becom with the english language and
    when she goes back then it should be swedish

    thats al.

    Lenny

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Days, Month, Year

    Quote Originally Posted by Nightwalker83 View Post
    Are you requesting help with your code or is it a demonstration? What does the code do?
    I'm afraid I still don't know the answer to this question.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2011
    Location
    Greece
    Posts
    164

    Re: [RESOLVED] Days, Month, Year

    Hi Hack


    Mybe it's the wrong place to show the code.
    as I wrote earlier form1 = Swedish language
    and form2 = English language
    because she will have it seperate from language.

    Lenny

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