locked
How do search for a date or date range using the search charm?

    Question

  • Have I overlooked this or can you only search for text using the search charm?

    I would also like to provide the user with a way to search for date and date ranges.


    Friday, February 3, 2012 9:50 PM

Answers

  • You have the local and text that the user entered so you can certainly implement searching for dates in your application.  Is there a standard for the format of such a search?  No, I am not aware of any.  I also am not aware of any Metro apps that currently have special handling of dates or try and detect if the text being searched for is a date.

    -Jeff


    Jeff Sanders (MSFT)
    Monday, February 6, 2012 3:17 PM
    Moderator

All replies

  • You have the local and text that the user entered so you can certainly implement searching for dates in your application.  Is there a standard for the format of such a search?  No, I am not aware of any.  I also am not aware of any Metro apps that currently have special handling of dates or try and detect if the text being searched for is a date.

    -Jeff


    Jeff Sanders (MSFT)
    Monday, February 6, 2012 3:17 PM
    Moderator
  • So in theory we could display a date picker control in the suggestion box that the search charms is allowing us to full with suggestion items?
    Monday, February 6, 2012 3:22 PM