on 09-28-2007 5:53 PM
Post Author: Brian Black
CA Forum: Formula
Our AS/400 based banking software provides dates in the format yyyyddd (i.e. 2007091 = April 01, 2007). Has anyone had any experience working with a date of this format in Crystal. The date comes out of the system as a numeric type. The year is easy to deal with via cstr() and left(), etc. but I am struggling with how to deal with the yyy portion in a way that deals with leap years, etc.
Any help with how to convert this to a standard date type would be greatly appreciated!!!
Thanks,
Brian Black
Post Author: Brian Black
CA Forum: Formula
Awesome. That worked great.
NUMBERVAR X := YYYYddd; //Your date//DATESERIAL(TONUMBER(TOTEXT(X,0,'','')[1 TO 4]),1,TONUMBER(TOTEXT(X,0,'','')[5 TO 7]));
This is a huge time saver for me!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post Author: SKodidine
CA Forum: Formula
Check out this post with the same issue.
http://technicalsupport.businessobjects.com/cs/forums/thread/6221.aspx
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.