|
|
|
|
Re: how to set a datetime parameter default to 11:59:59 pm [message #668301 is a reply to message #668264] |
Wed, 04 May 2011 22:06   |
Eclipse User |
|
|
|
I do not know how to attach file in this forum.
in eclipse birt designer, it is just a datetime field (one field), but when imported to tivoli common reporting, the field is shown as two component (do not know the reason), one component has a calendar icon to enter date part, another is a clock component to enter time part, if user just enter the date without the time part, the application will assume the time is 12:00:00 am, but I want if the user just input the date, the time will be default to 11:59:59 pm.
Also, I want this default value can visible to user, otherwise, user will not know the time is default to 11:59:59 pm.
|
|
|
Re: how to set a datetime parameter default to 11:59:59 pm [message #668415 is a reply to message #668301] |
Thu, 05 May 2011 11:09   |
Eclipse User |
|
|
|
Just select the xml view and copy and paste the xml to your response.
What does the date default to?
Jason
On 5/4/2011 10:06 PM, tong123123@yahoo.com.hk wrote:
> I do not know how to attach file in this forum.
> in eclipse birt designer, it is just a datetime field (one field), but
> when imported to tivoli common reporting, the field is shown as two
> component (do not know the reason), one component has a calendar icon to
> enter date part, another is a clock component to enter time part, if
> user just enter the date without the time part, the application will
> assume the time is 12:00:00 am, but I want if the user just input the
> date, the time will be default to 11:59:59 pm.
> Also, I want this default value can visible to user, otherwise, user
> will not know the time is default to 11:59:59 pm.
|
|
|
|
|
|
|
Re: how to set a datetime parameter default to 11:59:59 pm [message #1062030 is a reply to message #668665] |
Wed, 05 June 2013 09:34  |
Eclipse User |
|
|
|
You can set up a parameter default datetime like this:
BirtDateTime.addSecond(BirtDateTime.today(), 86399)
This yeilds the current date with time of 11:59:59 PM.
You can set any time to the second this way. Just do so math to figure out what second of the day equates to the time you want.
Let me know if this is what you are looking for.
|
|
|
Powered by
FUDForum. Page generated in 0.07400 seconds