utkarshk.leeway
24 Nov 2011, 11:47 AM
hi,
i want yo use some of my custom code to format data coming from store to be displayed using Xtemplates. like i want to know if i can assign value of {comment_on} to some variable or not??
example if i try doing this it gives error {[var dattaa = {comment_on}]} {[niceTime(dattaa)]} - nice time is my custom function to format date ..
however it works fine if i use it this ways {[niceTime("2011-11-2T14:12:07")]}
please suggest how can i format my date using my custom functions.
thanks in advance
Regards
UT
i want yo use some of my custom code to format data coming from store to be displayed using Xtemplates. like i want to know if i can assign value of {comment_on} to some variable or not??
example if i try doing this it gives error {[var dattaa = {comment_on}]} {[niceTime(dattaa)]} - nice time is my custom function to format date ..
however it works fine if i use it this ways {[niceTime("2011-11-2T14:12:07")]}
please suggest how can i format my date using my custom functions.
thanks in advance
Regards
UT