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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:19:23+00:00 2026-05-16T10:19:23+00:00

when I bind the wpf datepicker SelectedDate I get this 2010-08-25 08:15:33. As I

  • 0

when I bind the wpf datepicker SelectedDate I get this 2010-08-25 08:15:33.

As I do a comparison:

if (SelectedStart >= SelectedEnd)
     return false;
else
    return true;

I get always true. I have to compare the DATE without the TIME. But I do not want to convert to a string and parse this then as a Date. That would be silly.

Hm the control is called DATEpicker not DATETIMEpicker seems MS did naming mistake ;P

I already tried this: SelectedDate="{Binding Path=SelectedStart, StringFormat=\{0:d\}}"

But I always get the full 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-16T10:19:24+00:00Added an answer on May 16, 2026 at 10:19 am
    if (SelectedStartDate.Date >= SelectedEndDate.Date)
    

    This will compare only the date part of the DateTime

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

Sidebar

Related Questions

When you bind to a collection in WPF it actually always binds to a
I cannot get a two-way bind in WPF to work. I have a string
I am trying to bind a combobox in WPF like this, <ComboBox Width=350 Margin=5
I bind a dataset to a datagrid wpf like this DataSet d = Database.getBabies();
Is it possible in WPF to bind a ListView (NOT a DataGrid) to a
i have problem to correctly bind data to WPF Chart. When i'm setting ItemsSource
How can bind an event on a WPF Control to a method on my
In a WPF based project I would like to bind the content of a
In WPF and SubSonic 2 using Active Record, I was able to bind to
I'm writing a WPF application and trying to bind an image to my view

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.