Is there any way I can do this

Have a look here Formatting Dynamic Data for Client Side Display