Need coding help for Order Printer app

I need help adding a line of code to the app Order Printer so that it shows order notes. I’m trying to use the same line of code that I used in the legacy app, but it is not working. I also need code so that it shows the date the order was placed. My old code is not working for that either.

The code I was using for notes was

{% if note %}

Note

{{ note }}

{% endif %}

The code I was using to show the order date was

{{ created_at | date: “%m/%d/%y” }}

https://help.shopify.com/en/manual/orders/printing-orders/shopify-order-printer/migration#order-attributes-being-removed-from-the-global-namespace

Order attributes being removed from the global namespace

To access order attributes, prepend them with order.. For instance, billing_address is now accessed as order.billing_address.

So your code should be like

{% if order.note %}
  ### Note
  

{{ order.note }}

{% endif %}

 
{{ order.created_at | date: "%m/%d/%y" }}