German datepicker

grafsoft

Well-Known Member
Licensed User
Longtime User
Hi,
is there a datepicker in German or a method to adapt one?
Thank you
Peter
 

barx

Well-Known Member
Licensed User
Longtime User
Have a look at the 'Another DatePicker' class by Erel.

Click Here

because it is a class, you can edit whatever you like.

Although if I remember rightly, it uses localization and so should show month names in the locale translation.
 
Upvote 0

rboeck

Well-Known Member
Licensed User
Longtime User
In austrian and german calendars its usual to start with monday, all datepickers here start with sunday. It would be easy only to change the names of days and month, but to change the layout is much more work. I now checked the DialogsDemo from agraham and there are all month names correct in german. But the day are starting with sunday...

Greetings from L.A. (lower austria ;-)
Reinhard
 
Upvote 0

rboeck

Well-Known Member
Licensed User
Longtime User
Thanks for your help; one more thing to do:
In designer script line 10: change from label1 to label2
repeat it logically till line 15, in line 16 should be now label1.
 
Upvote 0

drachmad

Member
Licensed User
Longtime User
Beside what Erel recommended, you must change the days name sequence:

' American - start on Sunday - original
For Each d As String In DateUtils.GetDaysNames
daysNames(i).Text = d.SubString2(0, 2)
i = i + 1
Next
' Euro - start on Monday -> shift
Dim Sunday As String = daysNames(0).text
For i = 0 To 5
daysNames(i).text = daysNames(i+1).text
Next
daysNames(6).text = Sunday
 
Upvote 0

drachmad

Member
Licensed User
Longtime User
Hi Erel,

Not yet as what I want.
I am a little bit confuse about what you said on another thread by "you can add an event on closing".
I still try to understand it. I am sorry I am a newbie.
 

Attachments

  • AnotherDatePickerMod.zip
    12.3 KB · Views: 400
Last edited:
Upvote 0

drachmad

Member
Licensed User
Longtime User
Hi Erel,

What a quick response as always:). Thanks.

Actually what I want is to change the date that I get from the AnotherDatePicker to another format, eg.
Original "5/31/2013" to become "Friday 31 May 2013"
If using modal dialog it is easy,
if adp.show(...) = Dialogresponse.positive then
'change the format to what I want"
end if
or in VB.NET there is an event on Label.TextChanged I can do something.
For the time being I can manipulate it within the Class itself, but I think it is not the elegant way.
 
Upvote 0

drachmad

Member
Licensed User
Longtime User
Hi Erel,

Thanks!!! It function as what I needed.
Only as a newbie I am a little bit confuse how it works :).
For me it is new concept by entering it in the Designer?
 
Upvote 0
Top