HTML Question

"Cut" the string on HTML

In html tag I use smarty varaible it's look like this :



<div class="ty-blog__date">{$subpage.timestamp|date_format:"`$settings.Appearance.date_format`"}</div>





{$subpage.timestamp|date_format:"
$settings.Appearance.date_format
"} in web-site page looks like date: Авг 17, 2016
Where: Авг - month, 17 - date, 2016 year. But it is one string.
I need to cut this string to insert html tag's.
Some example:



<span>month</span><span>date</span><span>year</span>





How i can do it?

Answer
    <span>{$subpage.timestamp|date_format:"%B"}</span><span>{$subpage.timestamp|date_format:"%e"}</span><span>{$subpage.timestamp|date_format:"%Y"}</span>