Public
Edited
Mar 10
Insert cell
Insert cell
strtotime = import('https://esm.sh/locutus?debug').then(m => m.php.datetime.strtotime)
Insert cell
viewof input = Inputs.text({label: 'Input date string'})
Insert cell
output = strtotime(input)
Insert cell
outputDate = output === false ? 'Invalid date' : new Date(output * 1000)
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more