|
-
Feb 10th, 2007, 08:01 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] show the date in a label
How do i show the day (Saturday) not the date (10/02/07) in a label.
If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.
If you fail, try and try again, its the only way to success.
-
Feb 10th, 2007, 08:23 AM
#2
Re: show the date in a label
VB Code:
Label1.Caption = Format$(Now, "dddd")
-
Feb 10th, 2007, 03:14 PM
#3
Member
Re: [RESOLVED] show the date in a label
If anyone still read this [Resolved] post:
Do anyone know how I make the day, month and year to be displayed in english and not in my mothertongue?
Last edited by Bloodymess; Feb 11th, 2007 at 04:56 AM.
-
Feb 10th, 2007, 03:43 PM
#4
Re: [RESOLVED] show the date in a label
the simplest way is probably to just do it yourself:
VB Code:
Private strMonthNames() As String, strDayNames() As String
Private Sub Form_Load()
strMonthNames = Split("January,February,March,April,May,June,July," & _
"August,September,October,November,December", ",")
strDayNames = Split("Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday", ",")
Me.Caption = strDayNames(Weekday(Now, vbMonday)) & ", " & CStr(Day(Now)) & _
" " & strMonthNames(Month(Now)) & " " & Year(Now)
End Sub
-
Feb 11th, 2007, 04:58 AM
#5
Member
Re: [RESOLVED] show the date in a label
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
|