# Find calendar dates in js

**URL:** <https://forums.knack.com/t/find-calendar-dates-in-js/6632>\
**Category:** Get Answers\
**Created:** [September 26, 2019, 4:28pm UTC](https://forums.knack.com/t/find-calendar-dates-in-js/6632 "2019-09-26T16:28:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JazzCelaya39319](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JazzCelaya39319](https://forums.knack.com/u/JazzCelaya39319)\
**Post date:** [September 26, 2019, 4:28pm UTC](https://forums.knack.com/t/find-calendar-dates-in-js/6632/1 "2019-09-26T16:28:47Z")

</div>

Hello! I'd like to find something like an array for the dates of a calendar component, the way we get to visualize whats rendering in a view with an object that contains the info. I-m using the list form of a calendar.

---

<div class="post-metadata">

**Author:** ![SergiEgea35645](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sergiegea35645/32/235_2.png) [@SergiEgea35645](https://forums.knack.com/u/SergiEgea35645)\
**Post date:** [October 12, 2019, 4:29pm UTC](https://forums.knack.com/t/find-calendar-dates-in-js/6632/2 "2019-10-12T16:29:16Z")

</div>

When we show a calendar in a view, the records it shows are the same as if we are listing a table, so to access the dates of the records we will simply do so as when we access the data in a table.

$(document).on('knack-records-render.view\_XXX', function(event, view, records) {  
var user = Knack.getUserToken();  
var headers = {  
"Authorization": user,  
'X-Knack-Application-ID': Knack.application\_id,  
'X-Knack-REST-API-Key': 'knack',  
'content-type': 'application/json'  
};  
  
// HERE You can build your array to store all rendered date fields or read other events info.

console.log (records);

});
