Solved

Current date in datePicker.

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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