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

  • Home
  • SEARCH
  • 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 9230739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:53:47+00:00 2026-06-18T05:53:47+00:00

I have TDateTime variable named dtBegin. dtBegin is containing value 7/3/2000. I need to

  • 0

I have TDateTime variable named dtBegin. dtBegin is containing value “7/3/2000”.
I need to replace the Day only with “2” to change the value into “2/3/2000”.

How to do this? I’ve been suggested to use RecodeDay() method in C++ Builder XE but the method is not worked. I put the dtBegin on the method to be:

RecodeDay(dtBegin, 2);

But the method is not returning the value that I want.

Is there any method to do this? Help me please.
Thanks in advance.

  • 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-06-18T05:53:48+00:00Added an answer on June 18, 2026 at 5:53 am

    RecodeDay is a function declared as System::TDateTime __fastcall RecodeDay(const System::TDateTime AValue, const System::Word ADay);, so you need to store the return value:

    dtBegin = RecodeDay(dtBegin, 2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a TDateTime variable which is assigned a value at runtime of 40510.416667.
I have a TDateTime value (that I get as result from EndOfTheMonth(date) ) to
I already have a variable containing some groups. I generated that using the following
I have a variable: string currentTime in the constructor: currentTime = DateTime.Now.ToString(HH:mm:ss tt); And
I have stored a variable in database(sqlite) with datetime data type. Now I want
I have a datetime column in db that I want to transform into a
I need to get the minimum DateTime value of a column in a DataTable.
I have a table that is currently using a couple of columns named DateFrom
I have a query that selects data into a custom type- UserData curData =
I have this small method that pops up a message box warning , problem

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.