This is a migrated thread and some comments may be shown as answers.

RadDatePicker's input's DateFormat

1 Answer 239 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
mark
Top achievements
Rank 1
mark asked on 19 Nov 2008, 05:18 AM
Hey there,
How does one go about changing the DateFormat for the raddatepicker client side using javascript.
Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 Nov 2008, 07:57 AM
Hi Mark,

You can set the Date and Time format of DateTimePicker by using following method.

JavaScript:
<script type="text/javascript">
function
 ChangeFormat()
{  
    var datetimepicker= $find("<%= RadDateTimePicker1.ClientID %>");  
    datetimepicker.get_dateInput().set_dateFormat("dd/MM/yyyy");      
    datetimepicker.get_dateInput().set_displayDateFormat("dd/MM/yyyy ");  
}  
</script

You can also refer to the following link for more information about date format patterns.
Date Format Patterns

Thanks,
Princy.
Tags
Calendar
Asked by
mark
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or