RE: Date format in Java API search criteria

2017-12-13 Thread Hullule, Kiran
if this is 9.1 then you have arserverd.conf under /bin you need to define date format there. See if that helps. Sent from my Android phone using TouchDown (www.symantec.com) From: ARSList on behalf of Carl Wilson

RE: Date format in Java API search criteria

2017-12-13 Thread Carl Wilson
BTW: where is it stated he is using a BMC provided tool in the thread, did not see that with his original question - maybe I a missing some of the thread? -- Kind Regards, Carl Wilson From: ARSList [mailto:arslist-boun...@arslist.org] On

RE: Date format in Java API search criteria

2017-12-13 Thread Carl Wilson
Then the date format is taken from the AR Server format. -- Kind Regards, Carl Wilson From: ARSList [mailto:arslist-boun...@arslist.org] On Behalf Of LJ LongWing Sent: 13 December 2017 22:51 To: ARSList Subject: Re:

Re: Date format in Java API search criteria

2017-12-13 Thread LJ LongWing
The problem here is that he's not writing a java application, he's using an existing BMC provided tool, he just wants to be able to specify the date format for his queries On Wed, Dec 13, 2017 at 3:46 PM, Carl Wilson wrote: > Hi Misi, > > When using dates in Java, I

RE: Date format in Java API search criteria

2017-12-13 Thread Carl Wilson
Hi Misi, When using dates in Java, I predefine the date format to use with the following: Declarations static DateFormat dateFormat = new SimpleDateFormat("/MM/dd HH:mm:ss"); Then when invoking, use the following to convert the date(s) correctly: Date dateLicenseDate =

leave

2017-12-13 Thread Camp, Cindy - (ccamp)
Cindy Camp Information Technology Project Manager cc...@email.arizona.edu (520)621-4932 [logo] From: ARSList [mailto:arslist-boun...@arslist.org] On Behalf Of Misi Mladoniczky Sent: Wednesday, December 13, 2017 11:10 AM To: ARSList Subject:

Re: Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Hi, Some further testing seems to indicate that the following different formats always works in any combination: Date portion: "2017-01-31", "2017.01.31" or "01/31/2017" Time portion: "23.59.59" or "11:59:59 PM" There might be more that works, but the question about controlling the format

Re: Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Hi, I have tried this without being able to control it: ARDATE="%Y;%m;%d %H;%M;%S" ARDATEONLY=";MM;dd" ARTIMEONLY="HH;MM;ss" export ARDATE export ARDATEONLY export ARTIMEONLY I can supply "2016-01-31 ..." and "2016.01.31 ..." and these both works. If I use "/" it seems to interpret it in

Re: Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Nothing changes, I tried it. Best Regards - Misi, RRR AB, http://www.rrr.se (http://www.rrr.se) (ARSList MVP 2011) Ask the Remedy Licensing Experts (Best R.O.I. Award at WWRUG10/11/12/13) * RRR|License - Not enough Remedy licenses? Save money by optimizing. * RRR|Log - Performance issues or

RE: Date format in Java API search criteria

2017-12-13 Thread Grooms, Frederick W
What if you do set ARDATE? From: ARSList [mailto:arslist-boun...@arslist.org] On Behalf Of Misi Mladoniczky Sent: Wednesday, December 13, 2017 10:46 AM To: ARSList Subject: Re: Date format in Java API search criteria Hi, Well, on my Ubuntu-machine it apparently defaults to

Re: Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Hi, Well, on my Ubuntu-machine it apparently defaults to the Swedish format "-MM-DD HH:mm:ss". One of my clients using that same program are successfully using the format "M/D/ h:mm:ss a"... I tried changing my LANG environment variable without success. It seems to pick up some other

Re: Date format in Java API search criteria

2017-12-13 Thread LJ LongWing
okthat's a very good question that I've never had to explore.the API defaults to MM-DD- HH:MM:SS type of formatwhich is standard in America (and just about nowhere else)I've never had to deal with date/time formatting in the Java APIso sorry, I don't have a ready answer for

Re: Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Hi again, In this specific situation I could also rephrase the question. How do you know which format will be used in the parseQualification when executing a Java-API program? Best Regards - Misi, RRR AB, http://www.rrr.se (http://www.rrr.se) (ARSList MVP 2011) Ask the Remedy Licensing

Re: Date format in Java API search criteria

2017-12-13 Thread LJ LongWing
I'm sorry Misi, I'm not sure I understand your inquiry...are you asking how do you tell the Java api that when using the parseQualification method what format a date, included in that string is? On Wed, Dec 13, 2017 at 9:04 AM, Misi Mladoniczky wrote: > Hi, > > How do you control

Date format in Java API search criteria

2017-12-13 Thread Misi Mladoniczky
Hi, How do you control which date format is used by a client Java ARAPI program when parsing the qualifier string before q query? In the C-API you would set environment ARDATE="%Y-%m-%d %H:%M:%S" or similar. Best Regards - Misi, RRR AB, http://www.rrr.se (http://www.rrr.se) (ARSList MVP 2011)