|
-
Oct 23rd, 2011, 11:36 PM
#1
Thread Starter
Addicted Member
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:
Dim MyDay As Variant
Dim MyMonth As Variant
Dim WD As Long
Dim MM As Long
Dim MyDate1, MyDate2, EngDays
'********************************* Date & Year
MyDate1 = StrConv(Format$(Date, "dd"), vbProperCase)
MyDate2 = StrConv(Format$(Date, "yyyy"), vbProperCase)
'********************************* Days
MyDay = Array("Monday", "Tuesday", "Wednesday", "Thursday", "Fridag", "Saterday", "Sunday")
WD = Weekday(Now, vbMonday) 'day of week, where Monday is the 1st day of the week (1 based)
'********************************* Month
MyMonth = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
MM = Month(Now)
'************************* Day ************** Date *********** Month *****************Year
LabelDatumEng.Caption = MyDay(WD - 1) & " " & MyDate1 & " " & MyMonth(MM - 1) & " " & MyDate2
'********************************** END Date Year
Lenny
Last edited by Hack; Oct 24th, 2011 at 10:59 AM.
Reason: Added Highlight Tags
-
Oct 24th, 2011, 01:11 AM
#2
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
-
Oct 24th, 2011, 01:57 AM
#3
Thread Starter
Addicted Member
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
-
Oct 24th, 2011, 06:08 AM
#4
Re: Days, Month, Year
 Originally Posted by Nightwalker83
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.
-
Oct 24th, 2011, 09:01 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|