I have this yest_date variable in javascript
var yest_date = "Mon Dec 12 2016 15:33:41 GMT-0800 (Pacific Standard Time)"
I want this variable 'yest_date' to be in this format and the value is.
20161212
Can someone let me know how to achieve this.