datepicker language and clear

Hi,

Is there a way to set the language to a datepicker… i want the months to be in spanish, for example…

On the other hand…is there a way to clear the selected date for a user? or do i have to add a eraser, close to the datepicker in order to do that…

Thanks and greetings!

Hi,

I have another question about datepickers…

If i have 2 asociated datepickers, is there a way to validate dates? i mean… if i have a date from datepicker and a date to datepicker…and i do not want to create a function to validate that the date from must be less than the date to…is there a function that does this…or i have to implement it…

Thanks and greetings!

Hi,

Is there a way to set the language to a datepicker.

You can redefine dhx.Date.Locale object:

dhx.Date.Locale = {
month_full:[“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December”],
month_short:[“Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec”],
day_full:[“Sunday”, “Monday”, “Tuesday”, “Wednesday”, “Thursday”, “Friday”, “Saturday”],
day_short:[“Sun”, “Mon”, “Tue”, “Wed”, “Thu”, “Fri”, “Sat”]
};

is there a way to clear the selected date for a user?

Unfortunately, Datepicker does not built-in “clear” button. You should use custom solution.

If i have 2 asociated datepickers, is there a way to validate dates?

If the datepickers are inside Form, you can use form validation:

docs.dhtmlx.com/touch/doku.php?i … tmlx_touch

and the sample:
dhtmlxTouch/samples/02_form/08_validation_keys.html