Hi All, I trying to build an extension to set an item Option of date format below is the code I'm using
var $target = jQuery(e.currentTarget)
, value = $target.val() || $target.data('value') || null
_pdp.setOption(cart_option_id, value);_
The Date preference on backend is D/M/YYYY When I set the value as "*12/02/2021*" on the backend it is converted to "*02/12/2021*" instead of 12th FEB it is getting set as 2nd DEC not sure why it is happening any ideas??