I am having trouble converting a date to a datetime so that I can use the DateTimeDiff functionality. I am going through the following steps:
1. Convert Date to String
= ToText(?DateField)
30/09/2002 converts to 30/09/2002
2. Convert String to DateTime
DTSToDateTime ({TextDateField}+",0,0,0"
However all I seem to come up with is 00:00:00
I have tried this with the date in different formats, including not using /s eg. Date = 30092002, and 09302002 and 20020930 and 300902 etc etc...
Just started using Crystal and am beginning to despair - Can anyone help?
1. Convert Date to String
= ToText(?DateField)
30/09/2002 converts to 30/09/2002
2. Convert String to DateTime
DTSToDateTime ({TextDateField}+",0,0,0"
However all I seem to come up with is 00:00:00
I have tried this with the date in different formats, including not using /s eg. Date = 30092002, and 09302002 and 20020930 and 300902 etc etc...
Just started using Crystal and am beginning to despair - Can anyone help?