Solved

Current date in datePicker.

Posted on 2012-03-11
3
408 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
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now