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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T18:50:43+00:00 2026-06-01T18:50:43+00:00

I’m trying to take the date selection from the DatePicker (selection of which is

  • 0

I’m trying to take the date selection from the DatePicker (selection of which is put back into the TextBox on screen) and then save this to my SQL Azure database, where the type is defined as date.
However, I cant seem to find the right ending/format for the method to compile.

The exact error thrown is:

Error 1 ‘Microsoft.Phone.Controls.DatePicker’ does not contain a definition for ‘XXX’ and no extension method ‘XXX’ accepting a first argument of type ‘Microsoft.Phone.Controls.DatePicker’ could be found (are you missing a using directive or an assembly reference?) C:\Users\Kristian Schuhmacher\Documents\Visual Studio 2010\Projects\AT2\App\AT2App\AT2App\Settings\DriverCreator.xaml.cs 40 89 AT2App

Here are some code snippets:

        private void addAccountBtn_Click(object sender, RoutedEventArgs e)
    {
        _ServiceClient.AddDriverAsync(fnameTxtBox.Text, snameTxtBox.Text, BirthDate.XXX, phonemobNumBox.Text);
    }

^(xxx is what I am trying to fill)

        private void BirthDate_ValueChanged(object sernder, DateTimeValueChangedEventArgs e)
    {
        var date = (DateTime)BirthDate.Value;
        MessageBox.Show(date.ToString("d"));
    }

^This is some code that goes with the DatePicker

     <toolkit:DatePicker  Name="BirthDate" ValueChanged="BirthDate_ValueChanged" Margin="2,180,-2,940" />

^This is the line from the .xaml

The DatePicker works fine and as it should, just I cannot get the “xxx” part of the code right to ship it off to the WCF service that will put it back into my SQL Azure database.

Any help on this would be great.

Thanks,

  • 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-01T18:50:44+00:00Added an answer on June 1, 2026 at 6:50 pm

    I would expect you to be able to use the same code as in the BirthDate_ValueChanged handler:

    _ServiceClient.AddDriverAsync(fnameTxtBox.Text, snameTxtBox.Text,
                                  (DateTime) BirthDate.Value, phonemobNumBox.Text);
    

    Does that not work? If not, what does the declaration of AddDriverAsync look like? If you hit Ctrl-Shift-Space after the second argument, what does Intellisense show?

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

Sidebar

Related Questions

I am currently running into a problem where an element is coming back from
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to loop through a bunch of documents I have to put
Basically, what I'm trying to create is a page of div tags, each has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I used javascript for loading a picture on my website depending on which small

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.