Declare a global variable datetime gdt_build = DateTime(Today(), Now()) The time is updated whenever the app is saved or regenerated. An incremental build does not always update the variable.