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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

How do you extract the TIME from a DateTime variable?

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
cdemott33
Asked:
cdemott33
  • 2
1 Solution
 
p_davisCommented:
that particular part is a timespan assigned to the timeofday property

Timespan tod = yourTimeVariable.TimeOfDay;
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now