Cognizant Interview Question

One question is regarding taking current Date and time