Here's What I've in textarea:
<textarea>
<currentdate>2021-04-24 14:27:41.267617</currentdate>
<currentdate>2021-03-25 16:23:23.125432</currentdate>
<currentdate>2021-05-27 12:32:35.114312</currentdate>
<currentdate>2021-07-28 03:11:34.332411</currentdate>
</textarea>
and what i know about converting Gregorian calendar to Persian calendar is: How to change Gregorian date to Persian date in JavaScript?
and also i know for converting current time which is gregorian to persian i can use:
let today = new Date().toLocaleDateString('fa-IR');
console.log(today);
My question is: How can i create clickable button for clicking to find and convert those Gregorian dates and times to Persian date and Iran local time(fa-IR) in the textarea?
With this Format: yyyy/mm/dd hh:mm:ss
just number format, not name of month or ...
I'm sure it's not complicated , but I've searched everywhere and found nothing to solve my problem
thank you in advance:)