I have a datefield that´s formatted like text (Ex. 20021204). I need to use this field in a Datediff calculation, I guess I have to change the format before I can use it?(I´ve done it using Access)
What I want is
1. 20021204 (original textfield)
2. 2002-12-04 (formatted so the datediff function understand)
3. Datediff using the new formatted field
Please let me know if I´m thinking completely wrong here!
I´m not that used to the functions in CR but I found some functions that might do the trick.
DateValue (CDate ({PUPROTRA.D3611_Date1}[1 to 8]))
(I found this searching the forum, could I use this?)
Datediff ({PUPROTRA.D3611_Date1},{PUPROTRA.D3611_Date2})
I would love some help
Mikael "Sweden"
What I want is
1. 20021204 (original textfield)
2. 2002-12-04 (formatted so the datediff function understand)
3. Datediff using the new formatted field
Please let me know if I´m thinking completely wrong here!
I´m not that used to the functions in CR but I found some functions that might do the trick.
DateValue (CDate ({PUPROTRA.D3611_Date1}[1 to 8]))
(I found this searching the forum, could I use this?)
Datediff ({PUPROTRA.D3611_Date1},{PUPROTRA.D3611_Date2})
I would love some help
Mikael "Sweden"