Convert a Date or POSIXt object to a JS Date format

to_js_date(date)

Arguments

date

object to be converted

Value

Numeric value representing the number of milliseconds between Unix Epoch (1 January 1970 UTC) and date.