Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

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>
0
Whing Dela Cruz
Asked:
Whing Dela Cruz
1 Solution
 
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
 
Anuradha GoliSystems Development / Support SpecialistCommented:
Datetime s = DateTime.Now;
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now