How to convert string to timestamp ? For example, I have string:
2012-06-10T10:00:00+04:00
Use Parse method of Date object as described here.
If you are asking this for converting your date to database-specific formats, you can use a very nice library moment.js for various conversions
Try moment package for all date parsing it's awesome package.