datetime.localnow() year code example Example: datetime.localnow() year Date.Year(dateTime as any) as nullable number