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 6530279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:44:09+00:00 2026-05-25T09:44:09+00:00

Technology: Visual Studio 2008 .NET, Winforms bsTransactions.DataSource = Transactions.Tables[2]; bsnTransactions.BindingSource = bsTransactions; txtTransOverrideDate.DataBindings.Add(Text, bsTransactions,

  • 0

Technology: Visual Studio 2008 .NET, Winforms

bsTransactions.DataSource = Transactions.Tables[2];
bsnTransactions.BindingSource = bsTransactions;

txtTransOverrideDate.DataBindings.Add("Text", bsTransactions, "TransactionDate", true,DataSourceUpdateMode.Never, "", "MM/dd/yyyy");

Currently, I’m getting an error saying that the string wasn’t a recognized DateTime string. Despite the fact that if I get the column type from

 Transactions.Tables[2].Rows[0]["TransactionDate"].DataType.ToString();

returns “System.DateTime” and the actual value looks like “1/23/2010 12:00:00 AM”

I’m trying to format a string that currently looks like “1/23/2010 12:00:00 AM” to only show the date.

The catch is, there’s a BindingSourceNavigator being use, so just applying the formatting to the textbox after the fact only applies to the first value, but not any others that are navigated to using the bindingNavigator.

I have a feeling that using the “bsTransactions” to applies bindings to the textbox, it’s changing the datatype, hence it not being recognized as a DateTime.

  • 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-25T09:44:10+00:00Added an answer on May 25, 2026 at 9:44 am
    txtTransOverrideDate.DataBindings.Add("Text", bsTransactions, "TransactionDate", true,DataSourceUpdateMode.Never, "", "MM/dd/yyyy");
    

    I made changes in the original post to mimic this, but this is the answer.

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

Sidebar

Related Questions

Technology used: .NET 2008, C#, winforms So I currently have an issue. I have
As you know IntelliTrace technology just available on Visual Studio 2010 Ultimate version, and
I'm starting a new, large server based project using .Net 4 and Visual Studio
Technology Used:- Asp.Net 2.0 Code:- See Below Description:- hello code given below is working
Thinking about getting into .net technology project management I've had plenty of experience with
I use visual studio 2005 , but recently I've heard that there is a
I want to be notified when a build has been completed\failed in visual studio
I'm debating what technology to use for an upcoming ASP.NET project. Assumptions: I will
Created by Microsoft as the foundation of its .NET technology, the Common Language Infrastructure
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005? There

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.