Skip to content

date

date property type

Date type can be used for storing datetime value. It can store the date and time in StandardDateTimeFormat("yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK")

you can perform date comparision operation in kitsune tags

Example

coffeeshop (userdefined class) language properties

TypeName
strname
array(str)testimonials
array(offer)offers
numberbookedTables

offer (userdefined class)

TypeName
titlestr
decriptionstr
discountPercentagenumber
startDatedate
endDatedate
1
2
3
4
5
6
7
8
9
<span>
    <div k-repeat="[[coffeeshop.offers, ind,  View('/offers.html').offset : 10]]">
        <span>[[coffeeshop.offers[ind].title]]</span>
        <span k-show="[[coffeeshop.offers[ind].startDate > coffeeshop.offers[ind].endDate]]" />
            Offer start date should be less then end date.
        </span>
        <span>Discount : [[coffeeshop.offers[ind].discountPercentage]]%</span>
    </div>
</span>