[Webinar] Learn how to a build a cloud-first strategyRegister Now


C# rescue Day of date from Date column in datatable

Posted on 2011-04-19
Medium Priority
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

Dhaest earned 2000 total points
ID: 35430640
What exactly do you require ? Do you want the day from that datetime ?


Author Comment

ID: 35430662
10x a lot

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month20 days, 10 hours left to enroll

867 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