You must Sign In to post a response.
  • Category: .NET

    How to get data for a particular day from a list of days

    Hi,

    I am having a list of dates. I want to get data for friday to sunday from the list of dates.

    How to achieve this.

    Regards,

    RAJAN CRP
  • #763532
    What is the list ? is it dictionary or list object ? what is the data stored ? you have store dates or day in list ?
    can you elaborate more so that we can help you better in order to resolve issue

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #763534
    You can use the linq query to get the list

    For example to get all mondays.

    listName.where(a=>(a.datefield).DayaOfWeek=="Monday"

    You can try to get other days also.

    By Nathan
    Direction is important than speed


Sign In to post your comments