Fixed Length Date String
Posted by Linda on 22 June 2010 04:58 PM
Here is a sample of putting the Date of Birth "string" into a fixed length data output string.

This works for any Date of Birth in the 1900's
It outputs a blank fixed length string if no Date of Birth exists
@varYear* = ""
@varDateStr* = " "
@varYear = @de.do
@varAdd* = ""
@varAdd = 19 if ( @de.do > 01/01/1900 )
@varDateStr = @varYear if ( @de.do > 01/01/1900 )
@varDateStr = @(varAdd+varDateStr)

Some text|@varDateStr>8>|more text

Sample Output:
Some text|19650304|more text
Some text| |more text
(0 vote(s))
Helpful
Not helpful

Comments (0)