Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: ISO Dates From AS400 Post Reply Post New Topic
Author Message
purplenova
Newbie
Newbie


Joined: 24 Apr 2008
Online Status: Offline
Posts: 2
Quote purplenova Replybullet Topic: ISO Dates From AS400
     Posted: 24 Dec 2008 at 8:20am
I need some advice on extracting the month portion of a date stored on our AS400 in the following format "01012008"  MMDDYYYY
 
Thanks in advance:
Tom
IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4374
Quote lockwelle Replybullet Posted: 29 Dec 2008 at 6:20am
If you just want to select the month portion of the string, I would use LEFT({datafield}, 2).  If you want use it as a number, VAL(...) will convert the string to a number value.
 
Hope this helps
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum