Solved

How do you extract the TIME from a DateTime variable?

Posted on 2011-09-20
3
266 Views
Last Modified: 2012-05-12
I have a DateTime variable that holds the following value:

1/1/1900 8:30 AM

I want to extract the 8:30 AM from the value.  How do I do this?
0
Comment
Question by:cdemott33
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
p_davis earned 500 total points
ID: 36569075
that particular part is a timespan assigned to the timeofday property

Timespan tod = yourTimeVariable.TimeOfDay;
0
 
LVL 16

Expert Comment

by:disrupt
ID: 36569082
0
 
LVL 16

Expert Comment

by:disrupt
ID: 36569121
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error handling in asp.net site 5 29
Modal Popup Extender control 1 22
SqlServer no dupes 25 35
write xml in vb.net 2 24
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

803 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