Check out example codes for "rmarkdown put date". It will help you in understanding the concepts better.

Code Example 1

date: '`r paste("First created on Oct 01, 2018. Updated on", Sys.Date())`'

Learn ReactJs, React Native from akashmittal.com