How to change months with Datepicker - datepicker

Is there any way to change the date (value returned by getDate) pressing the change month arrows without using setDate?

It's not much clear your request..try to specify better; anyway see the documentation about datepicker https://jqueryui.com/datepicker/#dropdown-month-year

Related

A way for static "now" in google sheet?

I would like to insert a formula with a checklist. That is, when I check the checklist, I want the date and time when I did it to appear in the cell next to it. Obviously, however, the "now" formula is updated with each click of the checklists, and I want the date when I checked it to remain. How can I enter a static date? if you have to use VBA, how do you open it? would it be google script? help!
i've tried this formula
=if(C1="true";if(C2;C2;now());"")
but it works only if is FALSE....and no data.
Replace your references to now() with lambda(x;x)(now()). Volatile functions (like NOW, RAND,etc.) can be made 'sticky' by encapsulating them in a LAMBDA like this.

Adding custom event "liveChange" to date picker

I have requirement that sap.m.DatePicker should prevent alphabets but accept numbers. And the maximum input length should be 10.
When two digits entered for date, e.g. "10", a dot (".") should be automatically added. Also month. At the end, it should look like "10.12.2019" in DatePicker. I guess it would be possible with liveChange event, but DatePicker doesn't have liveChange.
Please let me know how to add custom liveChange event in DatePicker. It would be great help.
Currently (as of SAPUI5 1.64), there is no event such as liveChange for DatePicker. To add this functionality, you can create your own control and let it extend DatePicker. Then add the control to your view, attach an event handler and update the DatePicker's value using DatePicker#setValue.
You can take a look at
how to create a custom control in SAPUI5 here.
the liveChange implementation of sap.m.Input here.
The maxLength property of the input will be set by SAPUI5 automatically if you specify the DatePicker's property displayFormat, in your case dd.MM.yyyy.
OpenUI5/SAPUI5 1.104 adds the liveChange event to the following controls:
sap.m.DateTimeField controls, e.g.:
sap.m.DatePicker
sap.m.DateTimePicker
sap.m.DateRangeSelection
sap.m.TimePicker
sap.m.MaskInput
See commit: 72fdbf4.

Accessing object that is below a floating object

Link to original post
Here is what I am facing.
I am using the 'sheet selector' technique to switch between two sheets and the sheet selector parameter is the 'PY' and 'Date Range' option.
I also want to hide the corresponding filters along with the sheets.
When I pick PY - the checkboxes will be displayed.
When I pick date range Rebate Commit Date will be displayed.
I was able to successfully hide PY option by setting it to 'Only relevant values'.
However that is not working for date range
So I used a floating object in a vertical container to hide the date range.
It is hiding successfully but when I need to access date range am not able to do that because of the floating object on top.
Any ideas are highly appreciated.
Thank you.
Answered in tableau community - Link

Max date available in data to title

I wanna put the latest date available in my data to the title. I created a calculated fild max(date). However, it's stuck in measures and not available in the menu when I choose insert in the Title menu.
Any other ideas how to handle this? Thanks!
With this approach I assume that you wanted to add last refreshed datetime to Title. If yes, then you just need to double click on Title and then in Edit Title window click on 'Insert' to select Data Update Time. Content of Edit Title box can be like -
<Sheet Name> refreshed at <Data Update Time>
Now to answer your specific question - I would recommend to create a calculated field max_date as lookup(max([Date]),0) and drag it to 'Detail' Marks. Right click it and select MDY format. After this you should have max_date field in 'Insert' option of Edit Title box. Hope this helps!
Don't forget to let us know if it solved your problem :)
What actually helped to solve the problem is to use LOD. So my calculated field now looks like: {FIXED: MAX(date) }
To get the max date from your dataset you'll want to avoid using FIXED, INCLUDE, or EXCLUDE. The curly braces by themselves will get you what you're after.
Add that calculation to the detail shelf of the marks card so it's available to you in the title.
Once selected you'll see the max date of your dataset in the title.
Remember, it won't be available until you add it to your view.
Hope that helps!
Make another calculated field to convert your MAX date into a string:
STR([Calculation1])
Then you'll be able to add this field to your worksheet title.
In my case this issue came up when working on a dashboard and none of the other answers helped.
Create a new worksheet to use as the title in your dashboard.
In the new worksheet, create a new calculation Max([Date]) and drag it to the Text mark. Then click the Text mark and then click the ellipses, and insert the Max([Date]) into your title. Then make sure to hide your worksheet's title by clicking the 'More Options' arrow and clicking 'Title'.
Here is a tutorial to help illustrate.

Set UIDatePicker text color for dates outside of date range swift

I am playing with a UIDatePicker in my project and I have decided to change the text color to white with
self.datePicker.setValue(UIColor.white, forKey: "textColor")
I also have a minimum date set to today's date. The issue I am having is that the date and time text outside of my minimum date is still grey making it hard to see on my screen. I have been browsing the documentation and am not able to find a list of what key value pairs are available to the class in order to fix this. Thanks.