get selected value in datePicker and format it

前端 未结 4 1845
花落未央
花落未央 2021-02-10 02:01

In the datePicker selected 20.04.2012. I want to get this value, format it and store in a variable. I uses this code:

var date = $(\"#scheduleDate\"         


        
4条回答
  •  甜味超标
    2021-02-10 02:32

    Use jquery-dateFormat. It will solve your problem.

    You need to include the jquery.dateFormat in your html file.

    
    

提交回复
热议问题