6
votes
2answers
217 views

Extract year from parameter containing date [duplicate]

Possible Duplicate: How do I split a date? Does anyone know how to extract year from date in parameter of own macro? Namely, \themacro#1{...} where #1 contain either date already in ...
18
votes
2answers
722 views

Automated age calculation

How can I calculate my age at compile-time in LaTeX? Something like: I'm \myage{day}{month}{year} years old. would be most awesome.