How to add image capture time on captured image

I have add image capturing functionality in my app. But, i have requirement that captured image should have captured date and time. As shown in this link

I found some thing which may work…

Use canvas on Ionic for image overlay