C# rescue Day of date from Date column in datatable

Posted on 2011-04-19
Last Modified: 2013-12-16
Hi Experts

i have this column of datatable that loaded from stored procedure.
i don't know in which format the client will use DMY or MDY
and i want to rescue the day property of the date.
i take it to immediate window and i cnt find a way to rescue the properties.

{20/04/2001 00:00:00}
    Date: {20/04/2001 00:00:00}
    Day: 20
    DayOfWeek: Friday
    DayOfYear: 110
    Hour: 0
    Kind: Unspecified
    Millisecond: 0
    Minute: 0
    Month: 4
    Second: 0
    Ticks: 631233216000000000
    TimeOfDay: {00:00:00}
    Year: 2001

please help

Question by:gudidi
    LVL 53

    Accepted Solution

    What exactly do you require ? Do you want the day from that datetime ?


    Author Comment

    10x a lot

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now