| | |
month format in visual basic 6
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
you can change date format :
every days name and month name will be long type
or you can make procedure to convert :
to call this procedure:
Jery
Best Regards
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Ex : Format(Date, "dddd MMMM dd,yyyy")
or you can make procedure to convert :
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub Month_Convertion() Dim bulan As String bulan = Month(Date) Select Case bulan Case 1 bulan = "Januari" Case 2 bulan = "Februari" Case 3 bulan = "Maret" Case 4 bulan = "April" Case 5 bulan = "Mei" Case 6 bulan = "Juni" Case 7 bulan = "Juli" Case 8 bulan = "Agustus" Case 9 bulan = "September" Case 10 bulan = "Oktober" Case 11 bulan = "November" Case 12 bulan = "Desember" End Select bln = bulan End Sub
to call this procedure:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Month_Convertion lblMonth.Caption = bln
Jery
Best Regards
![]() |
Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB 2008 Express
- Next Thread: using variable in datasource in visual basic 6
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






