Skip to Content
0
Sep 14 at 06:55 AM

Date dimension not displayed correctly

76 Views

I have a date dimension in my model and need to display it as a dropdown.I have used the following code to get the members and display the data. But my dropdown looks weird. date-issue.pngSee attached. How can I see dates in the dropdown and not formats.Looks like I am doing something wrong in date format. Any guidance would be helpful.

var dates = Tbl_MarketPrice.getDataSource().getMembers("Date",10);

var l = 0; console.log(dates);

for(l=0;l<dates.length;l++)

{

DD_Date.addItem(dates[l].id);

}

Attachments

date-issue.png (44.4 kB)