I want to get the system date when the daml contract is created. Is there and way to do that.
Example :-
module ExampleTemplateModule where
template ExampleTemplate
with
admin: Party
todayDate: Date --- In place of this can I use getDate and get today's date
where
signatory admin
I know I can do this inside a script-do block, but I want to do it when I have to create a contract. If this is not possible, is there some other way through which I can take system's date while creating daml contracts.