I have 2 dates. Both are in `yyyy-mm-dd` format. I applied a simple check that if

```
if ('2017-01-15' > '2016-12-15') { 
    return true; 
} else { 
    return false; 
}

```

But it is giving me a syntax error. What should I do?