Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2232
  • Last Modified:

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

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
onebite2
Asked:
onebite2
1 Solution
 
hesCommented:
Try

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

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now