I want to get date without time.
I have in sql server Date type.
I try to get: liObj.innerText = shi.Date; in javascript
but I get: 2022-01-22T00:00:00
How I can remove the: T00:00:00
Thank you
>Solution :
let var1 = '2022-01-22T00:00:00'
let output = var1.split('T')[0]
console.log(output)