We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

C# rescue Day of date from Date column in datatable

gudidi
gudidi asked
on
Medium Priority
348 Views
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.

?dtCurrent.Rows[iCounter]["date_record"]
{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

10x
Comment
Watch Question

Project manager
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
10x a lot
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.