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

A post was split to a new topic: Type mismatch error