Feb 13, 2009 #1 Penny001 Programmer Joined Feb 20, 2008 Messages 17 Location US I am having a problem making a String Date field to a true Date field so I can compare with other dates. I'm using Crystal 7. I've tried DSToDate and the new field appears to be a date field but there is no data in it. Please help....
I am having a problem making a String Date field to a true Date field so I can compare with other dates. I'm using Crystal 7. I've tried DSToDate and the new field appears to be a date field but there is no data in it. Please help....
Feb 13, 2009 1 #2 IanWaterman Programmer Joined Jun 26, 2002 Messages 3,511 Location GB What is the format of your String Date? Ian Upvote 0 Downvote
Feb 13, 2009 Thread starter #3 Penny001 Programmer Joined Feb 20, 2008 Messages 17 Location US YYYYMMDD Upvote 0 Downvote
Feb 13, 2009 #4 IanWaterman Programmer Joined Jun 26, 2002 Messages 3,511 Location GB Not sure what functions are avaialable in CR 7 as its over 10 years old!! But this should work, create formula @Date Date(tonumber(left(DateString,4)), tonumber(mid(DateString,5,2)), tonumber(right(DateString,2))) Ian Upvote 0 Downvote
Not sure what functions are avaialable in CR 7 as its over 10 years old!! But this should work, create formula @Date Date(tonumber(left(DateString,4)), tonumber(mid(DateString,5,2)), tonumber(right(DateString,2))) Ian
Feb 13, 2009 Thread starter #5 Penny001 Programmer Joined Feb 20, 2008 Messages 17 Location US THANK YOU SO MUCH!! IT WORKED. Upvote 0 Downvote