View all expressions
Motion

Display Current Date in After Effects

Shows the current date within a text layer, customizable by format.


d = new Date(Date(0));
divider = "/"yearLength = 2; // use 2 for YY, 4 for YYYY
function padZeros(n){
if(n <= 9){
return "0" + n;
}
return n
}
yearTrim = (yearLength===2) ? 2 : 0;"" + padZeros(d.getMonth()+1) + divider + padZeros(d.getDate()) + divider + d.getFullYear().toString().substring(yearTrim,4);

Display Current Date in After Effects

Practical use case

Useful in dynamic date overlays or template projects where the date should auto-update.

Check out similar expressions

Data-driven video workflows for After Effects are easier with Plainly.

a mesh of elegant lines transparent image