- const label= document.createElement("b")
- label.textContent= `${dayInMonth}`.padStart(2, "0")
- const caption= document.createElement("small")
- caption.textContent= `${date.getUTCDate()}`.padStart(2, "0")
- + [ " Jan"
- , " Feb"
- , " Mar"
- , " Apr"
- , " May"
- , " Jun"
- , " Jul"
- , " Aug"
- , " Sep"
- , " Oct"
- , " Nov"
- , " Dec"][date.getUTCMonth()]
+ const label= lmn("b", null, `${dayInMonth}`.padStart(2, "0"))
+ const caption= lmn
+ ( "small"
+ , date.getUTCDay() == 0 || date.getUTCDay() == 6
+ ? {class: "weekend"}
+ : null
+ , lmn
+ ( "abbr"
+ , { title
+ : [ "Sunday"
+ , "Monday"
+ , "Tuesday"
+ , "Wednesday"
+ , "Thursday"
+ , "Friday"
+ , "Saturday"][date.getUTCDay()]}
+ , "SMTWÞFL"[date.getUTCDay()])
+ , " " + `${date.getUTCDate()}`.padStart(2, "0") + " "
+ , [ lmn("abbr", {title: "January"}, "Jan")
+ , lmn("abbr", {title: "February"}, "Feb")
+ , lmn("abbr", {title: "March"}, "Mar")
+ , lmn("abbr", {title: "April"}, "Apr")
+ , lmn("abbr", {title: "May"}, "May")
+ , lmn("abbr", {title: "June"}, "Jun")
+ , lmn("abbr", {title: "July"}, "Jul")
+ , lmn("abbr", {title: "August"}, "Aug")
+ , lmn("abbr", {title: "September"}, "Sep")
+ , lmn("abbr", {title: "October"}, "Oct")
+ , lmn("abbr", {title: "November"}, "Nov")
+ , lmn("abbr", {title: "December"}, "Dec")][date.getUTCMonth()])