944,045 Members | Top Members by Rank

Ad:
Dec 4th, 2007
0

month format in visual basic 6

Expand Post »
greetings!

anybody know how to convert the month value into word format


for example date = 12/2007
month is december

how to convert this 12 into "december "

is there any command to get the month value into string or word format...or i make may own...

thanks in advance
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
locsin is offline Offline
47 posts
since Aug 2007
Dec 4th, 2007
0

Re: month format in visual basic 6

you can change date format :
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Ex : Format(Date, "dddd MMMM dd,yyyy")
every days name and month name will be long type

or you can make procedure to convert :
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Month_Convertion()
  2. Dim bulan As String
  3.  
  4. bulan = Month(Date)
  5. Select Case bulan
  6. Case 1
  7. bulan = "Januari"
  8. Case 2
  9. bulan = "Februari"
  10. Case 3
  11. bulan = "Maret"
  12. Case 4
  13. bulan = "April"
  14. Case 5
  15. bulan = "Mei"
  16. Case 6
  17. bulan = "Juni"
  18. Case 7
  19. bulan = "Juli"
  20. Case 8
  21. bulan = "Agustus"
  22. Case 9
  23. bulan = "September"
  24. Case 10
  25. bulan = "Oktober"
  26. Case 11
  27. bulan = "November"
  28. Case 12
  29. bulan = "Desember"
  30. End Select
  31.  
  32. bln = bulan
  33. End Sub

to call this procedure:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Month_Convertion
  2. lblMonth.Caption = bln

Jery
Best Regards
Reputation Points: 1182
Solved Threads: 393
Posting Sensei
Jx_Man is offline Offline
3,145 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB 2008 Express
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: using variable in datasource in visual basic 6





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC