{#if templates[templateIndex] && newdate.date}
{newdate.date}
{/if} {#if templates[templateIndex] && newdate.time}
{newdate.time}
{/if}