Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-28
1
Medium Priority
?
2,169 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 2000 total points
ID: 34998851
Try

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

0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Loops Section Overview
Suggested Courses

610 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