Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6718545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:58:56+00:00 2026-05-26T08:58:56+00:00

I am working with Delphi Prism for .NET. I need to be able to

  • 0

I am working with Delphi Prism for .NET. I need to be able to take DateTime Value and separate the time from the date. I can do that on Win32 Delphi by using Frac function. I can’t seem to find anything similar to that for .NET. Do you know if anything exists for that?

Having not much luck, I wrote my own Frac method for .NET, but it only wants Double or Decimal values to run not DateTime. It seems .NET doesn’t treat DateTime Value as a Float or Decimal. Is that true? If that is true, my Frac method won’t work.

method Frac(theValue:Double):Double;
begin
    result := (theValue-math.Truncate(theValue));
end;

I have the datetimepicker set to Time format and retrieve the value and set it a datetime variable but only want the time not the date.

Thank you for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:58:56+00:00Added an answer on May 26, 2026 at 8:58 am

    Anything wrong with DateTime.Date and DateTime.TimeOfDay?

    (In fact, the answer is yes, there is quite a lot wrong with DateTime, but that’s a different matter… of course if you’re interested in using Noda Time from Delphi, I’d be very interested in hearing from you…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working with Delphi Prism for .NET. I need to call a public
I'm working in Delphi 2007. Net, where I can find an example of using
I am currently working with Delphi Prism for Mono development. So, the software can
Ok, this is a curly one. I'm working on some Delphi code that I
Working on a service application in Delphi 5 that is intended to run on
I have a simple Delphi program that I'm working on, in which I am
I am working on a Delphi project, where i need to export values to
I have an application written in Delphi 2006 that was working fine in Windows
I have an IFilter written in Delphi that I'm trying to get working under
Delphi 7 question. I'm working with a form that has many databound controls (changing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.