Sep 2, 2011 #1 lbass Technical User Feb 9, 2002 32,816 US You need to format the date, which is a string. So how does it currently display? MM/dd/yyyy? Or what is the format? -LB
You need to format the date, which is a string. So how does it currently display? MM/dd/yyyy? Or what is the format? -LB
Sep 2, 2011 #2 belle99999 Technical User Sep 2, 2011 4 CA Thanks!!... well I actually went back into the database and updated my script.. TO CHAR and refreshed the report and now the report date looks great 01/12/2011 but this field is part of a group parameter so when a user selcts to group by seniority date it poulates in the report but not ascending at all. Upvote 0 Downvote
Thanks!!... well I actually went back into the database and updated my script.. TO CHAR and refreshed the report and now the report date looks great 01/12/2011 but this field is part of a group parameter so when a user selcts to group by seniority date it poulates in the report but not ascending at all.
Sep 2, 2011 #3 belle99999 Technical User Sep 2, 2011 4 CA so before I updated my script the filed in the databse was 01/12/2011 00:00 00PM now its 01/12/2011 so after refreshing the crystal report the date formatted correctly but couldnt get the field to sort A-Z is it probaby something I need to do within the group parameter? Upvote 0 Downvote
so before I updated my script the filed in the databse was 01/12/2011 00:00 00PM now its 01/12/2011 so after refreshing the crystal report the date formatted correctly but couldnt get the field to sort A-Z is it probaby something I need to do within the group parameter?
Sep 2, 2011 Thread starter #4 lbass Technical User Feb 9, 2002 32,816 US So is that December 1 or January 12? dd/MM/yyyy or MM/dd/yyyy? -LB Upvote 0 Downvote
Sep 6, 2011 Thread starter #6 lbass Technical User Feb 9, 2002 32,816 US Replace your string date with the following formula: stringvar sdt := {CW_VW_209_SEN_CALLIN_SHEET.SENRTY}; totext(date(val(mid(sdt,7)),val(mid(sdt,4,2)),val(left(sdt,2))),"yyyy/MM/dd") This will result in the correct sort. -LB Upvote 0 Downvote
Replace your string date with the following formula: stringvar sdt := {CW_VW_209_SEN_CALLIN_SHEET.SENRTY}; totext(date(val(mid(sdt,7)),val(mid(sdt,4,2)),val(left(sdt,2))),"yyyy/MM/dd") This will result in the correct sort. -LB