WebDateControl Xojo Web control

WebDateControl.SetupCustomLocalization Event

This event is fired when you can add custom localizations.

SetupCustomLocalization()

Parameters

Remarks

See AddCustomLocalization method.

Here is example, note though you do not need to setup English unless you wish to change some setting in it.

Sub SetupCustomLocalization() Handles SetupCustomLocalization
    me.AddCustomLocalization( _
       "en", _
       "{" + _
       "days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']," + EndOfLine + _
       "daysShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']," + EndOfLine + _
       "daysMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']," + EndOfLine + _
       "months: ['January','February','March','April','May','June', 'July','August','September','October','November','December']," + EndOfLine + _
       "monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']," + EndOfLine + _
       "today: 'Today'," + EndOfLine + _
       "clear: 'Clear'," + EndOfLine + _
       "dateFormat: 'mm/dd/yyyy'," + EndOfLine + _
       "timeFormat: 'hh:ii aa'," + EndOfLine + _
       "firstDay: 0" + _
       "}")
End Sub

See Also

WebDateControl Class