I have a month and year picker and the selection gives the value as,
const selectedValue = "10/2020"
And I need to convert the above one to 2020-10-01T06:00:00
Date in the above format can be 01
always and time can also be 06:00:00
always..
Is it possible to convert "10/2020"
to 2020-10-01T06:00:00
using date format?
I have searched a lot regarding date function/methods but I couldn't find a method to achieve the above conversion. How to achieve the above type of date conversion?