{{text}}
field (type of string) from a Telegram bot in several lines, and you want to process the lines separately. Here is the way:map()
.map
iterator can be useful in regular steps as well. This method adits all the elements of a given array. reduce()
for calculating average.reduce
iterator can be useful in regular steps as well.lodash
)today
or now
(new Date()).toISOString()
returns a JS-date-object with current time. This method is more useful than now
, because we can compose complex JS-expressions in a one step using (new Date()).toISOString()
$D.date.format
returns string
data, this you can't save the result into a field type of date
Unix timestamp
format is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC.getTime()
JS-function. It deals with Date JS-object and returns Milliseconds since Epoch time. The steps are the following:new Date('{{date}}')
to the field {{date}}
type of date.getTime()
(1000*60*60*24)
β1000 milliseconds in a one, second; 60 seconds in a minute; 60 minutes in an hour; and 24 hours in a day.