In the following example, we convert a Series of Date strings to DateTime objects, so we can call various Date methods on them.
const dfd = require('danfojs-node')
let data = new dateRange({ "start": '1/1/2018', period: 12, freq: 'M' })
let sf = new Series(data)
sf.print()
let dt = toDateTime(data)
dt.dayOfMonth().print()
dt.dayOfWeekName().print()
dt.hours().print()