I have a time that looks like this: 2018/05/28 13:00
and I know that I should get it as a timestamp with the value of 1527512400000
(assuming GMT+0) but I didn’t find the correct method for that, any help?
I have a time that looks like this: 2018/05/28 13:00
and I know that I should get it as a timestamp with the value of 1527512400000
(assuming GMT+0) but I didn’t find the correct method for that, any help?
Assuming you get the date as
You can first create a
Date
object like thisthen for timestamp, you can parse the
Date
to anInteger