Solved

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

Posted on 2011-02-28
1
1,938 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

762 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

19 Experts available now in Live!

Get 1:1 Help Now