Solved

Current date in datePicker.

Posted on 2012-03-11
3
415 Views
Last Modified: 2012-06-27
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
Comment
Question by:Whing Dela Cruz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

by:angus_young_acdc
ID: 37707345
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
 

Author Comment

by:Whing Dela Cruz
ID: 37707690
Can you tell me How?
0
 
LVL 12

Accepted Solution

by:
Anuradha Goli earned 500 total points
ID: 37709322
Datetime s = DateTime.Now;
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question