Hi,
nawnit: When i click on calender icon it shows script error('Microsoft JScript runtime error: Object required').
Looks like the error message, you didnot use the control's clientID when you get the Date. Because you use the master page, so the control's cilentID is as the same as the control's id.
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support