Is there any method to get current Date, similar to getTime method

A post was split to a new topic: Access to time during contract creation