dojox/dtl/filter/dates (version 1.10)

Method Summary

  • _toDate(value)
  • date(value,arg) Formats a date according to the given format
  • time(value,arg) Formats a time according to the given format
  • timesince(value,arg) Formats a date as the time since that date (i.e. "4 days, 6 hours")
  • timeuntil(value,arg) Formats a date as the time until that date (i.e. "4 days, 6 hours")

Methods

_toDate(value)
Parameter Type Description
value undefined
Returns:undefined | string | instance
date(value,arg)

Formats a date according to the given format

Parameter Type Description
value undefined
arg undefined
Returns:string | undefined
time(value,arg)

Formats a time according to the given format

Parameter Type Description
value undefined
arg undefined
Returns:string | undefined
timesince(value,arg)

Formats a date as the time since that date (i.e. "4 days, 6 hours")

Parameter Type Description
value undefined
arg undefined
Returns:string | undefined
timeuntil(value,arg)

Formats a date as the time until that date (i.e. "4 days, 6 hours")

Parameter Type Description
value undefined
arg undefined
Returns:string | undefined
Error in the documentation? Can’t find what you are looking for? Let us know!