Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenation

Status
Not open for further replies.

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
 
At universe level (DB2 databases):
[tt]TIMESTAMP(Date, Time)[/tt]

At Report level:
[tt]=AsDate(FormatDate(<Date>,&quot;d/m/yyyy&quot;) & FormatDate(<Time>,&quot; H:m:s&quot;), &quot;d/m/yyyy H:m:s&quot;)[/tt]
 
i have created two variables to test ur problem named
today'sdate and today's time.

=FormatDate(<today'sdate> ,&quot;dd/mm/yyyy&quot;) &quot; &quot;& ,<today'stime>)

after that i h've utilised ampersand to concatenate, for better readbility use double quotes with two spaces.
 
prev message i think the formula is not clear

FormatDate(<today'sdate> ,&quot;dd/mm/yyyy&quot;)& &quot; &quot;& <today'stime>

rgds,
Suresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top