MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mcundith
Post subject: Formating dates  PostPosted: Feb 05, 2008 - 10:22 PM
Veteran Member
Veteran Member


Joined: Feb 04, 2008
Posts: 11

I have a data column in my data set that is an interger date in the format YYYYMMDD. How can I format it to MM/DD/YYYY? Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Formating dates  PostPosted: Feb 07, 2008 - 12:11 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

You can right click on your field and go to Style > New Style > Format Date Times and select your formatting there.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
mcundith
Post subject: RE: Formating dates  PostPosted: Feb 07, 2008 - 08:05 PM
Veteran Member
Veteran Member


Joined: Feb 04, 2008
Posts: 11

I tried that and it doesn't seem to work. It still prints in YYYYMMDD. I double checked and the data column is actually of type decimal not integer. Would this cause it not to format?
 
 View user's profile Send private message  
Reply with quote Back to top
mcundith
Post subject: RE: Formating dates  PostPosted: Feb 08, 2008 - 12:04 AM
Veteran Member
Veteran Member


Joined: Feb 04, 2008
Posts: 11

Ok i got it to work. I had to cast it to a char in the query string and then substring it out to the format that I wanted.
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: Formating dates  PostPosted: Feb 08, 2008 - 04:57 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

Glad you got it to work. Thanks for letting me know.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits