We help IT Professionals succeed at work.

Current date in datePicker.

Whing Dela Cruz
on
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>
Comment
Watch Question

CERTIFIED EXPERT

Commented:
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.

Author

Commented:
Can you tell me How?
Systems Development / Support Specialist
Commented:
Datetime s = DateTime.Now;

Explore More ContentExplore courses, solutions, and other research materials related to this topic.