Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27350

VS 2012 Custom date for DateTimePicker

$
0
0
Hello,

I'm building program, where i need to put some custom month names in DateTimePicker, because Regional parameters won't get correct month name for me, and i'm really stuck at this time, can't find any solution of that. So here is some code where i started to build, but now i don't know what to do next:

Code:


Private Sub DateTimePicker3_ValueChanged(sender As Object, e As EventArgs) Handles datIsdav.ValueChanged

        Dim sSpMonth(12) As String
        Dim XXX As String
        sSpMonth(0) = "Sausio" 'Jan
        sSpMonth(1) = "Vasario" 'Feb
        sSpMonth(2) = "Kovo" 'Mar
        sSpMonth(3) = "Balandzio" 'Apr
        sSpMonth(4) = "Geguzes" 'May
        sSpMonth(5) = "Birzelio" 'Jun
        sSpMonth(6) = "Liepos" 'Jul
        sSpMonth(7) = "Rugpjucio" 'Aug
        sSpMonth(8) = "Rugsejo" 'Sep
        sSpMonth(9) = "Spalio" 'Oct
        sSpMonth(10) = "Lapkricio" 'Nov
        sSpMonth(11) = "Gruodzio" 'Dec

        datIsdav.CustomFormat = "yyyy XXX dd"

 End Sub



So where is XXX i need to put these new month names in DateTimePicker, how could i do that can someone help me? Thank you.

Viewing all articles
Browse latest Browse all 27350

Trending Articles