This code will show you that how you can add current date & time at runtime in your div tag using javascript function.