It's not at all clear from your post what you are tryin to do. Can you be more explicit what you are trying to achieve with your code sample? Try stating:
1) What you expect to observe
2) What you actually observe
i cannot pick the date ie the alert is showing date is invalid.
start date is showing date is invalid.