I have the following javascript code

var list = [
  {
    Date : '00/00/0000',
    DateStart: '00/00/0000',
    Name: 'string',
    ...
    ...
  },
  {
    Date : '00/00/0000',
    DateStart: '00/00/0000',
    Name: 'string',
    ...
    ...
  }
];
var column = list.?;

What can I do to the column variable has the Date value, for example?

Recommended Answers

All 2 Replies

Hi

Do you want to assign the date to the variable column? If so you would do something like:

var column = list[1].Date;

HTH

What can I do to the column variable has the Date value, for example?

It's rather -what do 'you' want to do with them?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.