Results 1 to 2 of 2

Thread: [RESOLVED] DatePicker maxYear

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Resolved [RESOLVED] DatePicker maxYear

    Hi,

    I have a Datepicker on my xaml page and i'm trying to assign the maxYear that it should accept by using the Properties toolbox, but i'm getting the following error :
    Code:
    Error 1 Cannot assign text value '2035-12-12 -05:00' into property 'MaxYear' of type 'DateTimeOffset'
    from 12/12/2113 7:43 PM -05:00
    trying to 12/12/2035 7:37 PM -05:00

    Thank You
    Last edited by met0555; Dec 12th, 2013 at 08:10 PM.

  2. #2

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: DatePicker maxYear

    I manage to make it work, instead of changing the value in the properties window, i did it programatically like this

    Code:
     Dim date2 As DateTimeOffset
            date2= "12/12/2035"
            datepicker1.MaxYear = date2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width