# Calling Date TypeScript

**URL:** <https://forum.makecode.com/t/calling-date-typescript/7314>\
**Category:** Help\
**Created:** [April 12, 2021, 2:58pm UTC](https://forum.makecode.com/t/calling-date-typescript/7314 "2021-04-12T14:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![virgiliodelacruzanah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/virgiliodelacruzanah/32/3865_2.png) [@virgiliodelacruzanah](https://forum.makecode.com/u/virgiliodelacruzanah)\
**Post date:** [April 12, 2021, 2:58pm UTC](https://forum.makecode.com/t/calling-date-typescript/7314/1 "2021-04-12T14:58:52Z")

</div>

Hello

I am trying to call Date from Makecode Blocks Playground

let date: Date = new Date();  
console.log("Date = " + date);  
But it appear an Error  
Go to error: Line 12: Cannot find name ‘Date’.

Thanks

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [April 12, 2021, 3:26pm UTC](https://forum.makecode.com/t/calling-date-typescript/7314/2 "2021-04-12T15:26:38Z")

</div>

You can’t get the date as the Makecode Blocks Playground doesn’t support getting a date. Probably because you can’t get the date on hardware either.
