Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[10p]{article}
- \usepackage[calc,datesep=/]{datetime2}
- \DTMsavedate{ShootDate}{2016-05-20}
- \newcommand{\PaymentTurnAroundDays}{45}
- \newcount\daycount
- \newcommand{\dueDate}[1]{%
- \DTMsaveddateoffsettojulianday{ShootDate}{#1}\daycount
- \DTMsavejulianday{ShootDate}{\number\daycount}
- \DTMusedate{ShootDate}
- }
- \begin{document}
- Payment will be made by \dueDate{\PaymentTurnAroundDays} (within {\PaymentTurnAroundDays} of the day of the event(s)).
- Payment will be made by \dueDate{\PaymentTurnAroundDays} (within {\PaymentTurnAroundDays} of the day of the event(s)).
- I want the dates above to be the same.
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment