# Get current system time and date

**URL:** <https://forums.unrealengine.com/t/get-current-system-time-and-date/324408>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 7, 2015, 5:58pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408 "2015-07-07T17:58:44Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abcd](https://forums.unrealengine.com/u/abcd)\
**Post date:** [July 7, 2015, 5:58pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/1 "2015-07-07T17:58:44Z")

</div>

How can I get the current system time and date?  
I can´t seem to find a function for it and the link to the UE4 documentation just leads me to a 404 page.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [July 8, 2015, 7:38am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/2 "2015-07-08T07:38:53Z")

</div>

Hi!

You can do this in two ways

**1. Install plugin Victory.**

> **[(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required!](https://forums.unrealengine.com/showthread.php?3851-%2839%29-Rama-s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required)**
>
> Dear Community, 🌟 Newest Awesome Feature 🌟 (In Complimentary (no cost) Victory Plugin!) Now You Can Get the Text Output (STDOUT or STDERR) from any .exe program, straight into Unreal Engine! is the output of ⚡ a video compression commandline...

**Get Current Operating System Time**

> **[(39) 's Extra Blueprint Nodes for You as a Plugin, No C++ Required!](https://forums.unrealengine.com/showthread.php?3851-%2839%29-Rama-s-Extra-Blueprint-Nodes-for-You-as-a-Plugin-No-C-Required%21&p=65910&viewfull=1#post65910)**
>
> Dear Community, 🌟 Newest Awesome Feature 🌟 (In Complimentary (no cost) Victory Plugin!) Now You Can Get the Text Output (STDOUT or STDERR) from any .exe program, straight into Unreal Engine! is the output of ⚡ a video compression commandline...

**2. Or add C++ class**

> **[Can I get current system time in Blueprints?](https://forums.unrealengine.com/questions/35042/get-current-time.html)**
>
> Hello, I just wanted to ask if it was possible to gather the current system time in blueprints ? I need it to synchronize the game with a specific timezone. Thanks in advance

---

<div class="post-metadata">

**Author:** ![abcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abcd](https://forums.unrealengine.com/u/abcd)\
**Post date:** [July 8, 2015, 11:22am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/3 "2015-07-08T11:22:02Z")

</div>

That plugin is for Unreal Engine 4.7, but im already on 4.8.  
And on the C++ class link, the link to docs.unrealengine doesn’t work, so I can’t look up the function.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2ed5b4c7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2ed5b4c7](https://forums.unrealengine.com/u/anonymous_user_2ed5b4c7)\
**Post date:** [July 8, 2015, 11:44am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/4 "2015-07-08T11:44:42Z")

</div>

Link

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — https://unrealcommunity.wiki/! You will be able to find content from...

Download CURRENT version

 ![49482-victory.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/8/2/682ebc08362c17644b2eeb383e4ec973ea04d249.png)

---

<div class="post-metadata">

**Author:** ![abcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abcd](https://forums.unrealengine.com/u/abcd)\
**Post date:** [July 8, 2015, 1:26pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/5 "2015-07-08T13:26:59Z")

</div>

I did, and it doesn’t work:

![49502-bildschirmfoto+2015-07-08+um+15.26.18.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/8/ee8d4553778567f8928f02be94a593aae3466148.png)

I installed it like it says on the page.

---

<div class="post-metadata">

**Author:** ![abcd](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@abcd](https://forums.unrealengine.com/u/abcd)\
**Post date:** [July 17, 2015, 8:43am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/6 "2015-07-17T08:43:38Z")

</div>

Any idea why its not working?

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [May 21, 2016, 3:42pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/7 "2016-05-21T15:42:35Z")

</div>

Note that the above answer is now outdated. You can simply use the Blueprint node “Now” along with the built in “DateTime” nodes to achieve the results requested.

---

<div class="post-metadata">

**Author:** ![vipeout](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@vipeout](https://forums.unrealengine.com/u/vipeout)\
**Post date:** [April 12, 2018, 9:29am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/8 "2018-04-12T09:29:02Z")

</div>

You sir, have won the day for me. It’s nice that there’s someone who enters old questions and updates them with new info. Good job 😉

---

<div class="post-metadata">

**Author:** ![Shakhmilav](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shakhmilav](https://forums.unrealengine.com/u/Shakhmilav)\
**Post date:** [September 21, 2018, 10:18pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/9 "2018-09-21T22:18:02Z")

</div>

My thx !!!

---

<div class="post-metadata">

**Author:** ![TankorSmash](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TankorSmash](https://forums.unrealengine.com/u/TankorSmash)\
**Post date:** [May 15, 2020, 4:28am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/10 "2020-05-15T04:28:10Z")

</div>

And then you can use the `asDate` blueprint node to convert it to text, if needed.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_c035ff34](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c035ff34](https://forums.unrealengine.com/u/anonymous_user_c035ff34)\
**Post date:** [January 6, 2021, 2:07pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/11 "2021-01-06T14:07:34Z")

</div>

The plugin is only available for the windows platform.

---

<div class="post-metadata">

**Author:** ![KITATUS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kitatus/32/983160_2.png) [@KITATUS](https://forums.unrealengine.com/u/KITATUS)\
**Post date:** [January 6, 2021, 2:45pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/12 "2021-01-06T14:45:03Z")

</div>

As previously stated, you can simply use the Blueprint node “Now” along with the built in “DateTime” nodes to achieve the results requested.

---

<div class="post-metadata">

**Author:** ![machinecommune](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@machinecommune](https://forums.unrealengine.com/u/machinecommune)\
**Post date:** [August 3, 2022, 2:43pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/13 "2022-08-03T14:43:00Z")

</div>

In C++ you can use FDateTime::Now().

For example, to get the current day of the year:

const int32 CurrentDay = FDateTime::Now().GetDayOfYear();

---

<div class="post-metadata">

**Author:** ![unit23](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unit23/32/1146013_2.png) [@unit23](https://forums.unrealengine.com/u/unit23)\
**Post date:** [October 23, 2022, 5:42pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/14 "2022-10-23T17:42:48Z")

</div>

Computer Time Example

 ![Time](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/7/7e7ef6dc3948e523df88e2ab0081bf258aff2507.jpeg)

---

<div class="post-metadata">

**Author:** ![NadirLatif](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NadirLatif](https://forums.unrealengine.com/u/NadirLatif)\
**Post date:** [March 13, 2023, 10:20am UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/15 "2023-03-13T10:20:24Z")

</div>

You can use the Timespan and Date Time functions.

---

<div class="post-metadata">

**Author:** ![MonkeyBoy8001](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/monkeyboy8001/32/1215316_2.png) [@MonkeyBoy8001](https://forums.unrealengine.com/u/MonkeyBoy8001)\
**Post date:** [September 4, 2023, 1:59pm UTC](https://forums.unrealengine.com/t/get-current-system-time-and-date/324408/16 "2023-09-04T13:59:52Z")

</div>

Aaagh, I just spent an hr writing a function do that! lol! Oh well! :o)
