If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > Date & time Required

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-12-09, 03:15
scuderia scuderia is offline
Registered User
 
Join Date: May 2009
Posts: 1
Date & time Required

if {?Date}=" " then
{ArInvoice.Invoice} in {?InvoiceFrom} to {?InvoiceTo}
else if {?InvoiceFrom}=" " and {?InvoiceTo}=" " then
{ArInvoice.InvoiceDate} = {?Date}

i have 2 field in parameter field. 1 is {ArInvoice.InvoiceDate} = {?Date}, another is {ArInvoice.Invoice} in {?InvoiceFrom} to {?InvoiceTo}. i wish that i may choose either one of this two field to get the report. but when i write the code, it return "A date-time is required here".
Reply With Quote
  #2 (permalink)  
Old 09-01-09, 10:35
dominperca dominperca is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
A date-time is required here

I'm having the same problem. I have a field that contains information in the following format: "1900-01-01 13:00:00.000" which is datetime
But the information I'm needing is just the time, so I tryed to convert this information to time with the function "Time({WOE.STARTTIME})" but Crystal 8.5 returns the message: "A date-time is required here".

Is there anyone that could help us on what is the trick here to get the date value?
Reply With Quote
  #3 (permalink)  
Old 09-01-09, 10:36
dominperca dominperca is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
A date-time is required here

I'm having the same problem. I have a field that contains information in the following format: "1900-01-01 13:00:00.000" which is datetime
But the information I'm needing is just the time, so I tryed to convert this information to time with the function "Time({WOE.STARTTIME})" but Crystal 8.5 returns the message: "A date-time is required here".

Is there anyone that could help us on what is the trick here to get the time value?
Reply With Quote
  #4 (permalink)  
Old 09-01-09, 10:54
dominperca dominperca is offline
Registered User
 
Join Date: Sep 2009
Posts: 3
I have done this and worked: First convert the field you want to convert to datetime and then convert to date or time (depending on your needs) the datetime field. It looks like the problem was that the source field was not clearly datetime and that's why Crystal cannot perform the conversion. I hope this help every body.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On