I'm using the datepicker popup with format='dd.MM.yyyy'. However, if the user is not using the datepicker, but instead enters the date by himself, the date is parsed as MM.dd.yyyy, i.e. month and day are mixed up.
The same thing can be done in the official demo page:
Scroll down to datepicker
Select dd.MM.yyyy as format in the format drop down
Enter 01.02.2014 in the "popup" field above - the resulting date will be Jan 2nd, not Feb 1st.
Is there any way to get the right behavior? Or is this a bug?
Related
I am trying to select a date from DatePicker. It works properly often but when i select future date, the picker sets itself to current date(as per my code of maxdate). In this date shows current date in label but at backend object it is actually 1 day minus of current date. e.g After auto set of picker to current date, it displays in label 09-Apr-2015 but in my object(nsdate) which is want to Post to server api, it shows 2015-04-08 18:30:00 +0000. Thus my object send 8 apr to the server. Kindly reply if someone has faced this problem.
This is not a problem. The date picker is giving you correct time but only in the other time zone (Appears GMT+5:30)
When you are sending the date in your API, convert it to NSString using NSDateFormatter of the default time-zone or time-zone of your choice.
Some thing is wrong with your GMT settings.
try this code to fix:
[yourdataobject dateByAddingTimeInterval:[[NSTimeZone localTimeZone] secondsFromGMT]];
This will automatically fix your date in whatever zone your app is running in.
In Acumatica Cloud ERP, How can I create a calculated column that shows a date field formatted as Year, Quarter. i.e. Dec 21, 2014 to show "2014, Q4"
Inside your Generic Inquiry, just add a field to your field list use the expression editor in the “Data Field” and put in something like below. In this example I am formatting the Invoice Date field (ARInvoice.DocDate), so replace this with the date field you want to format.
=CStr(Year([ARInvoice.DocDate]))+', Q'+
CStr(Switch( month([ARInvoice.DocDate])>0 and month([ARInvoice.DocDate])<4,1,
month([ARInvoice.DocDate]) >3 and month([ARInvoice.DocDate])<7,2 ,
month([ARInvoice.DocDate])>6 and month([ARInvoice.DocDate])<10,3,1=1,4))
Hi, I have a 2 textboxes (#from and #to), with a date-range between them.
DateRange Datepicker
E.g. #from I select 10 October 2014
(The current popups show October,November,December)
Now at this stage the #to textbox has no value, when you click on the textbox, it shows from October 2014 which is absolutely perfect this is what I need. (I know this is because of the code in on onClose event as in the hyperlink).
The problem is that if I select e.g. December 2014 now in #to, and it closes, and I open #to again, it then shows December,January,February.
The requirement is that the user needs to not look forward in #to but he needs to see that the range was from October 2014 to December 2014 - and thus needs to see the three months on the screen as October,November, December and not the default 3 months that the jQuery UI Datepicker shows after a date has been selected.
Is it possible to set the first month that a 3 month calender has to display?
Normally, when I enter times in Google spreadsheet as 22:00:00 the display automatically switches to 10:00 PMbut sometimes it's not converting.
How can I set a common format for times in Google spreadsheet? I need this format: 8:00 PM.
Select all ranges that you wish to have this time format and go to Format > Number > More formats to select the one of your choice. (I think the one you want is near the bottom and shows as 3:59 PM.)
If you want to format a time with TEXT() to display with am/pm you can use:
=TEXT(DateField, "HAM/PM")
To get a results like
1am
1pm
10pm
12am
Use UPPER() to make it uppercase.
I change calendar javascript to Hijri, But another problem comes up. It seems that a class (DueDateValidator.class) try to validate input date, while the number of days in month is different to georgian calendar. for example we have 31 days in second month of year but in georgian (february) it is 28 or 29.
I don't think there is an out-of-the-box option to cancel Jira's date validation. You could overwrite Jira's date validation, but I think it will be easier to use a Free Text Field custom field that will hold the date as a string. Then, add to the field js code that will hide this field and copy it's date to the date field.
To keep the right order when searching for issues, you can either use date mapping to keep the georgian calendar up to date, or store the dates in a sortable way (for example YYYY/MM/DD/HH/MM - 201302161334) and order the results according to this field.
UPDATE
Simple example for Jira version 5.2.6, this will copy the text from field id customfield_10001 to the created field:
AJS.$("#create-date").text(AJS.$("#customfield_10001-val").text().trim())
To search easily keep another text field and save the date in the following format :
year month day hour minute
All in digits. for example, today's Gregorian date would be:
2013 02 267 10 26
than, when searching for issues, for example to find issues created after today's date:
custom_filed > "2013 02 267 10 26"
that sorting will work since it will sort issues first by year, than month, day, hour, minute.
I stored date in text field by creating new custom field in system-customfieldtypes-plugin.xml filed but In search it only accept exact text not > or <
custom_filed ~ "2013 02 267 10 26" It is acceptable but
custom_filed > "2013 02 267 10 26" shows jQL error.