add datetime snippet