# How do I change the month format obtained with Get Current Date?

**URL:** <https://forum.robotframework.org/t/how-do-i-change-the-month-format-obtained-with-get-current-date/5112>\
**Category:** Libraries\
**Created:** [1 January 2023 10:11 UTC](https://forum.robotframework.org/t/how-do-i-change-the-month-format-obtained-with-get-current-date/5112 "2023-01-01T10:11:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![picas1123](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/picas1123/32/2167_2.png) [@picas1123](https://forum.robotframework.org/u/picas1123)\
**Post date:** [1 January 2023 10:11 UTC](https://forum.robotframework.org/t/how-do-i-change-the-month-format-obtained-with-get-current-date/5112/1 "2023-01-01T10:11:23Z")

</div>

${month} Get Current Date result\_format=%m

How should the ‘01’ format be converted to the ‘1’ format?

---

<div class="post-metadata">

**Author:** ![Shadow](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shadow](https://forum.robotframework.org/u/Shadow)\
**Post date:** [2 January 2023 13:40 UTC](https://forum.robotframework.org/t/how-do-i-change-the-month-format-obtained-with-get-current-date/5112/2 "2023-01-02T13:40:59Z")

</div>

For Windows use **%#m** instaed of **%m**
