I have a date saved in a string with this format: 2017-09-28T22:59:02.448804522Z this value is provided by a backend service.
Now, in javascript how can
You could also convert it to unix time in milliseconds:
console.log(new Date('2017-09-28T22:59:02.448804522Z').valueOf())
const currentTime = new Date('2017-09-28T22:59:02.448804522Z').valueOf()
const expiryTime = new Date('2017-09-29T22:59:02.448804522Z').valueOf()
if (currentTime < expiryTime) {
console.log('not expired')
}