DIWesser

Increasing Dates

Jul 9th, 2016
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.65 KB | None | 0 0
  1. \documentclass[10p]{article}
  2. \usepackage[calc,datesep=/]{datetime2}
  3.  
  4. \DTMsavedate{ShootDate}{2016-05-20}
  5. \newcommand{\PaymentTurnAroundDays}{45}
  6.  
  7. \newcount\daycount
  8. \newcommand{\dueDate}[1]{%
  9.     \DTMsaveddateoffsettojulianday{ShootDate}{#1}\daycount
  10.    \DTMsavejulianday{ShootDate}{\number\daycount}
  11.    \DTMusedate{ShootDate}
  12. }
  13.  
  14. \begin{document}
  15.  
  16. Payment will be made by \dueDate{\PaymentTurnAroundDays} (within {\PaymentTurnAroundDays} of the day of the event(s)).
  17.  
  18. Payment will be made by \dueDate{\PaymentTurnAroundDays} (within {\PaymentTurnAroundDays} of the day of the event(s)).
  19.  
  20. I want the dates above to be the same.
  21.  
  22. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment