Problem using java.time.LocalDate as process-variable in jBPM - Business Central - datetimepicker

I'd like to use a process-variable to retrieve and store only date, no time information. Therefore I've defined a java.time.LocalDate variable in my process. Then in a taskform, where user should be able to enter a date, I entered a form-control of type DatePicker and unchecked its "show time" property. My problem: the entered date isn't stored in the process-variable. If I check the "show time" property, then the user is being asked for a daytime too and the Date (without time information) is stored in the variable. How can I ask only for a Date and store only a Date?
Another question: I'm using the jBPM-server-distribution 7.36.0.Final and Dates in the DatePicker-Control have the format mm/dd/YYYY. Would it be possible to show Dates with the format dd/mm/YYYY?
Thanks for your help!

Related

Jira birthday JQL query

I have multiple issues (people) in a Jira cloud instance and they all have a birthday field.
Now, I'ld like to run a JQL to find out if anyone have a birthday today, so I can remind everyone else. Is this possible?
I also have access to the automation for jira plugin if that helps.
Assuming that your birthday field is a valid date, try birthday_field >= startOfDay() AND birthday_field < endOfDay which should give you a result set of people/issues with birthday field value that fall today. For additional references, checkout Function Reference page.
I'm afraid this won't be easily possible.
If the field is date field (e.g. 11/Dec/1979), the birthday is probably stored including year of birth and therefore time functions (now(), startOfDay(), ...) won't work.
If the field is string field (1979-12-11), then you won't be able to compare it with today as you can get now() as a string.
One idea - if you have ScriptRunner installed, create a simple custom scripted field (e.g. Birthday Anniversary) and recalculate original birthday to birthday anniversary this year (11/Dec/2019). You will be then able to compare this field with today, e.g.:
"Birthday Anniversary" = now()
On top of that, once you are able to create such filter, you can create a custom dashboard with today's birthdays and you can subscribe to this filter and get daily overview of today's birthdays.
In my team we send notification about tickets in the following ways:
Jira filters subscription for cases where we need plain(to one person/lead/manager) notification, but without fields analysis
https://confluence.atlassian.com/jira064/receiving-search-results-via-email-720416706.html?_ga=2.134616433.1430628443.1592459825-259335427.1591590509
https://confluence.atlassian.com/jira064/receiving-search-results-via-email-720416706.html?_ga=2.134616433.1430628443.1592459825-259335427.1591590509
https://github.com/dgroup/lazylead for cases where we need automatically check ticket fields, comments, links and alert corresponding person, assignee or reporter.
Please note that i'm author of https://github.com/dgroup/lazylead app.

Handling Date Format - VB.Net/SQL Server Based WebApp

I have a Web App and trying to make date format configurable by users as for example people in London should be able to view and enter dates in dd/MM/yyyy format while people in the US MM/dd/yyyy.
Dates are being stored in the DB in smalldatetime. Displaying according to user preference is no issue as String.Format or toString(format) can be used according to user preference whenever a date is displayed. The issue is when a user enters the date. Suppose the server is in the US and uses US cultureinfo by default. So when a date in MM/dd/yyyy format is entered by the user on a page, the server works fine. But not able to figure out the best way to implement such that when user preference for date format is dd/MM/yyyy and when user inputs a date, the code first converts it in MM/dd/yyyy format through some centralized setting so that all lines where dates are handled are not required to be changed.

Generic TimeZone According to login user location

I want that all DateTime Objects come from Model may converted to Local of login user. All Datetime are stored in UTC format in Database.
For Example
If someone Create user and CreatedDate is stored in UTC.Now(2014-05-06 01:00PM);
Then someone login from Pakistan and navigate to users view then the DateTime must show as 2014-05-06 06:00PM for last created user.
I know how to convert but which is the best approach to do it. I want to convert all datetime coming from Database into current ..
I saved all My date formats in DateTime.UtcNow
and add 1 column TimeZoneId in DB and check it whenever some results are need to be shown on view or any thing want to manipulate according to timezone of current user.

how to insert current time automatically in table in oracle forms?

I have a problem in oracle forms.
My database is consisting of a main table,table name is (buy_order_customer) which has (b_order_id,customer_id,b_date,b_time).
I'd like to insert the current time automatically in the b_time column, I'm able to insert the current date in the b_date column but I can't do the same with b_time.
Both b_date, and b_time is of type 'date'.
can any one help please?
thanks in advance.
In Oracle DB a DATE datatype always contain both date and time (even if you don't display them.
So, if you inserted the current date into b_date then you already have the current time as well.
Try this:
SELECT to_char(b_date, 'mm-dd-yyyy hh24:mi:ss')
FROM buy_order_customer
and see that you have the time as well
I think you mean the initialvalue to fill these fields in a form at runtime.
If I'm right then you need one of the following system variables:
$$DATE$$ retrieves the current operating system date (client-side).
$$DATETIME$$ retrieves the current operating system date and time.
$$DBDATE$$ retrieves the current database date.
$$DBDATETIME$$ retrieves the current date and time from the local database.
I don't know any system variable to retrieve only the time.
If it is for displaying purposes you need to use dateformat masks on your fields.

SQL Reporting Services 2005 - Date field based on a user entered date?

I have a report in report services 2005 that has two date fields. The problem is that if users run this for a large section of time it uses too much resources on our server.
It is possible to only allow the end user to enter the start date and then the end date be auto populated/derived from this field (for example they enter the 1st of a month and this automatically change the end date to the last of a month.)
Yes you can do this. Hide your end date parameter, edit the expression for the default value and do a dateadd function using the startdate parameter.