Nov 5, 2002 #1 donlste Programmer Sep 19, 2001 14 GB Hi there, Can anyone help me on how I go about concatenating a Date and a Time field. I know it's not possible through the usual concatenate command. If anyone can help me, that would be fantastic. Ta
Hi there, Can anyone help me on how I go about concatenating a Date and a Time field. I know it's not possible through the usual concatenate command. If anyone can help me, that would be fantastic. Ta
Nov 5, 2002 #2 promero Technical User Jun 12, 2001 83 ES At universe level (DB2 databases): [tt]TIMESTAMP(Date, Time)[/tt] At Report level: [tt]=AsDate(FormatDate(<Date>,"d/m/yyyy" & FormatDate(<Time>," H:m:s", "d/m/yyyy H:m:s"[/tt] Upvote 0 Downvote
At universe level (DB2 databases): [tt]TIMESTAMP(Date, Time)[/tt] At Report level: [tt]=AsDate(FormatDate(<Date>,"d/m/yyyy" & FormatDate(<Time>," H:m:s", "d/m/yyyy H:m:s"[/tt]
Nov 12, 2002 #3 surthinks Technical User Nov 12, 2002 2 IN i have created two variables to test ur problem named today'sdate and today's time. =FormatDate(<today'sdate> ,"dd/mm/yyyy" " "& ,<today'stime>) after that i h've utilised ampersand to concatenate, for better readbility use double quotes with two spaces. Upvote 0 Downvote
i have created two variables to test ur problem named today'sdate and today's time. =FormatDate(<today'sdate> ,"dd/mm/yyyy" " "& ,<today'stime>) after that i h've utilised ampersand to concatenate, for better readbility use double quotes with two spaces.
Nov 12, 2002 #4 surthinks Technical User Nov 12, 2002 2 IN prev message i think the formula is not clear FormatDate(<today'sdate> ,"dd/mm/yyyy"& " "& <today'stime> rgds, Suresh Upvote 0 Downvote
prev message i think the formula is not clear FormatDate(<today'sdate> ,"dd/mm/yyyy"& " "& <today'stime> rgds, Suresh