Question: Beginner developer here - I'm creating a card game in Android Studio using java, and I have cards (ImageViews) being created on the click of a button in my Horizontal LinearLayout. Everything is working great, but when the objects get to the edge of the mobile screen, they just disappear as they are created. 

I'm having a hard time coming up with a programmatic way to detect the edge of the screen, and then have the cards start to overlap with each other as more are created. 

Any help or direction would be much appreciated!

Answer: 
```
var t = "2016-02-18T23:07:00.000-08:00"
var u = Date.parse(t);

```
Just use Moment.js:

```
moment('2016-02-18T23:07:00.000-08:00').format('LLL');

```

Returns: 

> 
> February 19, 2016 8:07 AM
> 
> 
> 

Or just a timestamp:

```
Date.parse('2016-02-18T23:07:00.000-08:00');

```

Works fine

<https://momentjs.com>