# Get system date

**URL:** <https://forum.katalon.com/t/get-system-date/35196>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [October 23, 2019, 8:47pm UTC](https://forum.katalon.com/t/get-system-date/35196 "2019-10-23T20:47:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![walterf.verdud](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@walterf.verdud](https://forum.katalon.com/u/walterf.verdud)\
**Post date:** [October 23, 2019, 8:47pm UTC](https://forum.katalon.com/t/get-system-date/35196/1 "2019-10-23T20:47:12Z")

</div>

Hi everybody!

I have a problem and need help of her, please!

I have a web aplication and need get system date. I need know how make the code for apply it in a text box.

I hope your answer, please!

Thanks,

---

<div class="post-metadata">

**Author:** ![manpreet.mukkar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manpreet.mukkar/32/16103_2.png) [@manpreet.mukkar](https://forum.katalon.com/u/manpreet.mukkar)\
**Post date:** [October 23, 2019, 11:07pm UTC](https://forum.katalon.com/t/get-system-date/35196/2 "2019-10-23T23:07:28Z")

</div>

@walterf.verdud

This might help

> [@Is there a way to get the current ‘date’ and ‘time’, modify them and use as a new input?](http://forum.katalon.com/t/is-there-a-way-to-get-the-current-date-and-time-modify-them-and-use-as-a-new-input/6501/3):
>
> This is the code I am using. time\_started = new Date() println "TEST STARTED AT (America/New\_York): " + time\_started.format(“yyyyMMdd-HH-mm”, TimeZone.getTimeZone(‘America/New\_York’)) runtime = " "+ time\_started.format(“yyyyMMddHHmm”, TimeZone.getTimeZone(‘America/New\_York’)) seconds = time\_started.format(“HHmmss”, TimeZone.getTimeZone(‘America/New\_York’))

> **[How to Get Current Date and Time in Java - Javatpoint](https://www.javatpoint.com/java-get-current-date)**
>
> How to Get Current Date and Time in Java examples using java.time.LocalDate, java.time.Calendar, java.time.LocalTime, java.util.Date, java.sql.Date and Calendar classes. We can get current date and time int java by different ways.

---

<div class="post-metadata">

**Author:** ![walterf.verdud](https://avatars.discourse-cdn.com/v4/letter/w/df705f/32.png) [@walterf.verdud](https://forum.katalon.com/u/walterf.verdud)\
**Post date:** [October 24, 2019, 8:52pm UTC](https://forum.katalon.com/t/get-system-date/35196/3 "2019-10-24T20:52:06Z")

</div>

Hi!

Thanks for the answer friend!

I solved it as follow, using the “localDate” :

fecha = ((((LocalDate.now().day.toString() + ‘/’) + LocalDate.now().getMonthValue().toString()) + ‘/’) + LocalDate.now().toString().substring(  
0, 4))  
After, I declare the variable “fecha” for printing by screen.

Bye!

---

<div class="post-metadata">

**Author:** ![manpreet.mukkar](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/manpreet.mukkar/32/16103_2.png) [@manpreet.mukkar](https://forum.katalon.com/u/manpreet.mukkar)\
**Post date:** [October 24, 2019, 9:03pm UTC](https://forum.katalon.com/t/get-system-date/35196/4 "2019-10-24T21:03:52Z")

</div>

@walterf.verdud Glad to hear that.
