19

Is there a way in the Print Composer of QGIS to create a label that will automatically update the date (systems date) instead of having a label that you have to manually have to update?

28

Yes, you can add

format_date( now(),'yyyy-MM-dd HH:mm:ss')

This used to be the old syntax:

$CURRENT_DATE(yyyy-MM-dd)
  • 3
    In QGIS3, if adding as a label in your Layout, you could add this code to the Label item's 'Main properties' text box [% format_date( now(),'MM/dd/yyyy') %] – cm1 Aug 3 '18 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.