# Right(curdate(),5)\<Right(anydate)

**URL:** <https://forums.percona.com/t/right-curdate-5-right-anydate/1329>\
**Category:** Other MySQL® Questions\
**Created:** [January 16, 2010, 11:48pm UTC](https://forums.percona.com/t/right-curdate-5-right-anydate/1329 "2010-01-16T23:48:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lovmysql](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@Lovmysql](https://forums.percona.com/u/Lovmysql)\
**Post date:** [January 16, 2010, 11:48pm UTC](https://forums.percona.com/t/right-curdate-5-right-anydate/1329/1 "2010-01-16T23:48:48Z")

</div>

Hi Everybody,

I wanted to know the explanation for the below syntax,

Right(curdate(),5)\<Right(anydate);

in the above syntax why v r using 5 in the second parameter and why v r using lessthan symbol ?

pls anybody tell me the meaning :roll:

---

<div class="post-metadata">

**Author:** ![gmouse](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gmouse](https://forums.percona.com/u/gmouse)\
**Post date:** [January 17, 2010, 3:14pm UTC](https://forums.percona.com/t/right-curdate-5-right-anydate/1329/2 "2010-01-17T15:14:53Z")

</div>

Try SELECT Right(curdate(),5)

---

<div class="post-metadata">

**Author:** ![Lovmysql](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@Lovmysql](https://forums.percona.com/u/Lovmysql)\
**Post date:** [January 18, 2010, 1:25am UTC](https://forums.percona.com/t/right-curdate-5-right-anydate/1329/3 "2010-01-18T01:25:02Z")

</div>

Thank you very much.it was so simple thing i could’nt sense it.
