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 http://stackoverflow.com/questions/13125898/display-time-and-date-on-capture-image

I found some thing which may work…

Use canvas on Ionic for image overlay

http://movibe.github.io/photogram-docs/