Please help me create a function to convert dates like

```
2010-10-04 17:45:50

```

Into something more pretty like

```
10 October at 17:45

```

And so it can hide years if they are not really needed and display date like

```
today/yesterday at 17:45

```

This is a bit similar to how Facebook displays past dates.