Solved

date time format 'MM/YYYY' for Infragistics Ultratime editor

Posted on 2011-02-28
1
2,075 Views
Last Modified: 2012-05-11
I have to read a value of  Expiration date which is an infragistics ultra datetime editor from database using business objects.
The date should be shown as 'MM/YYYY 'format .
What changes should I make to  my code??I want to change in the .NET code instead of change in database.

Thanks,


If Not _CreditCard.ExpirationDate.Equals(String.Empty) Then
 dtExpirationDate.DateTime = CType(_CreditCard.ExpirationDate, Date)
        End If

Open in new window

0
Comment
Question by:onebite2
[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
1 Comment
 
LVL 20

Accepted Solution

by:
hes earned 500 total points
ID: 34998851
Try

dtExpirationDate.DateTime = Format(_CreditCard.ExpirationDate,"MM/yyyy")

0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

688 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