Added setFormat method to update current datepicker format
Added AMD support
Preserving time of originally passed date