How to find and replace date and time in textarea and convert to persian calender in javascript?

Here’s What I’ve in textarea: