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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:22:54+00:00 2026-06-11T00:22:54+00:00

This is a WinForms, VB.NET app, using VS 2010 Pro. I added a datetimepicker

  • 0

This is a WinForms, VB.NET app, using VS 2010 Pro. I added a datetimepicker to a form. Set the custom property to MM/dd/yyy. the relevant part of my function is as below:

        If IsDate(_uni.unitRentDate) Then
            t_TenantUnitRentDate.Value = _uni.unitRentDate
        Else
            If Not _uni.unitRentDate.HasValue Then
                t_TenantUnitRentDate.Value = New DateTime(2010, 1, 1)
            End If

        End If

_uni is a table in the EF and unitRentDate is stored in that table as DATETIME. The datetimepicker is t_TenantUnitRentDate.

The problem I am having is that when the form loads the dateTimePicker is showing the date in the format of this example Saturday , September 10, 2012 . This is not what I am wanting it to do at all.. It should be showing as 9/10/2012 . Why is this failing I looked at the date being returned from the database and it is showing a correct date value at that time.

  • 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-11T00:22:55+00:00Added an answer on June 11, 2026 at 12:22 am

    Try it again by setting Format property to ‘Custom’

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

Sidebar

Related Questions

Using c#, VS2005, and .NET 2.0. (XP 32 bit) This is a Winforms app
I wrote a WinForms app using .Net and C#. The app accesses DirectoryServices and
I have a .NET Winforms app (created in VS2005) that I deploy using ClickOnce.
In my C#-WinForms-application (.Net 3.5, VS2008) I read the App.Config using: Configuration myConfig =
project: Using VB.NET to build a winforms database interface and work-automation app. I am
project: Using VB.NET to build a winforms database interface and work-automation app. I am
I have this app written in VB.Net with winforms that shows some stats and
I have an wcf winforms self-hosted app using nettcpbinding.(net.tcp://aaa.homeip.net:9388) The problem is windows 7
I've got a cross-platform .NET app that is using WinForms. For better compatibility with
This is a C# Winforms App in .NET 4.0. I receive a byte array

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.