jQuery UI DatePicker - Change Date Format

前端 未结 28 1803
后悔当初
后悔当初 2020-11-21 16:39

I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:

And the

28条回答
  •  被撕碎了的回忆
    2020-11-21 17:13

    I use this:

    var strDate = $("#dateTo").datepicker('getDate').format('yyyyMMdd');
    

    Which returns a date of format like "20120118" for Jan 18, 2012.

提交回复
热议问题