Current date in datePicker.

How to set current date of this code in dataform?

</dataForm:DataField>
   <dataForm:DataField Label="Date">
      <controls:DatePicker    Text="{Binding TheDate, ValidatesOnExceptions=True, StringFormat='MM dd, 2012', Mode=TwoWay}"
                                                    IsTodayHighlighted="True" />
                        </dataForm:DataField>
Whing Dela CruzAsked:
Who is Participating?
 
Anuradha GoliConnect With a Mentor Systems Development / Support SpecialistCommented:
Datetime s = DateTime.Now;
0
 
angus_young_acdcCommented:
Within the code, where the resources are all kept and it states what each property is (not the properties menu), you should be able to set the value to DateTime.Now.Year, Day, Month, etc.
0
 
Whing Dela CruzAuthor Commented:
Can you tell me How?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.