公历 - 在Android中获取错误的值(Gregorian Calendar - Getting wrong values in Android)
我正在使用公历来设置日期值并尝试设置值。 代码如下
Constants.sSetDate_calendar = new GregorianCalendar(year,month,day);// year - 2013, month - 12, day - 15 Log.w("OOOOO", Constants.sSetDate_calendar.get(Calendar.YEAR)+"--"+Constants.sSetDate_calendar.get(Calendar.MONTH)+"--"+Constants.sSetDate_calendar.get(Calendar.DAY_OF_MONTH)+"");
在日志声明中,我明白了
11-02 10:21:35.060: W/OOOOO(26671): **2014--0--15**
不确定出了什么问题。 为什么值设置和获取是不同的? 这里需要一些帮助。
I am using Gregorian calendar to set the date value and trying to get the values set. Code below
Constants.sSetDate_calendar = new GregorianCalendar(year,month,day);// year - 2013, month - 12, day - 15 Log.w("OOOOO", Constants.sSetDate_calendar.get(Calendar.YEAR)+"--"+Constants.sSetDate_calendar.get(Calendar.MONTH)+"--"+Constants.sSetDate_calendar.get(Calendar.DAY_OF_MONTH)+"");
In Log statement, i see
11-02 10:21:35.060: W/OOOOO(26671): **2014--0--15**
Not sure what is going wrong. Why the values set and get are different ? Need some help here.
原文:
最满意答案
收到微软的回复。 一位同事对此进行了验证,发现它解决了我们的问题。
过滤器已应用于
Account
的默认视图(我必须承认我不知道这个!)。单击以创建新视图时,执行的部分代码将检索当前的默认视图并将其用作模板。
因此,删除默认视图上的所有过滤器可解决此问题。
我不太确定它为什么会在添加新标准时产生影响,但我想我会选择不去考虑它!
Reply received from Microsoft. A colleague has verified this and found it fixed the issue in our case.
A filter had been applied to the default view for
Account
(I must admit I wasn't aware of this!).When you click to create a new view, part of the code executed retrieves the current default view and uses that as a template.
Removing all filters on the default view therefore solve this issue.
I'm not quite sure why it should have had the affect it did when adding new criteria, but I think I'll choose not to think about that!
相关问答
更多-
LINUX 如何查看JPG文件[2022-06-13]
find -
我们可以比较日期是$gte new Date("2018-01-26")和$lt new Date("2018-01-27") db.col.find( {$expr : { $and: [ { $gte : ["$created_time", new Date("2018-01-26")] }, { $lt : [ "$created_time", new Date("2018-01-27") ] } ] } } ) 或将日期格式设置为%Y%m%d (yyyyMM ...
-
谢谢! 我没想过这个场景。 这是一个错误。 我现在发布了对GitHub 的相应修复 。 该演示使用了GitHub的最新代码。 Thank you! I didn't thought about the scenario. It's a bug. I posted now the corresponding fix to GitHub. The demo uses the latest code from GitHub.
-
过滤器仅在应用时才开始工作,而不是“旧数据”或当前帐户中的数据。 它不起作用。 所以,是的,这将是一个很大的复杂因素,因为说你有www.domain.com/startpage ,它现在显示为/startpage 。 一旦应用了过滤器,它将显示为www.domain.com/startpage 。 您现在将有两个不同的行用于相同的URI。 Filters only start working from when they are applied, not on "old data", or data you ...
-
我不认为有现有的API可以解决您的问题。 一种方法是重新编码过滤器对话框并添加额外的功能。 例如,您可以将高级筛选器列表存储在磁盘上,并从您想要的位置重新使用它们。 Here's my hack method. Basically, there's a few setup and operational lines, anda bunch of filter definitions and combinatorics in the middle. This does save the defined fil ...
-
如何在Axe 2012中的正常查询表格中使用高级过滤器(How to use advanced Filter in normal Inquiries Forms in Ax 2012)[2022-12-25]
请参阅Microsoft Dynamics AX 2012和Microsoft Excel以及维度提供程序类和运行时维度范围中的 帐户和维度筛选 。 基本上,您从包含分类帐维度的基表中添加与视图DimensionAttributeLevelValueView的关系。 此外, 这个答案可能会有所帮助。 See Filtering on account and dimension in Microsoft Dynamics AX 2012 and Microsoft Excel and Dimension Pr ... -
您无法应用两个高级过滤器。 您需要修改过滤条件并使用公式,例如: Sub difficultQ() Dim x Dim Y Dim lastRow As Long Y = "Match1" Range("A1").Value = vbNullString Range("A2").Formula = "=AND(M5=""" & Y & """,COUNTIFS($E$5:$E5,E5,M$5:M5,""" & Y & """)=1)" last ...
-
首先,在设置命名范围时,在范围选项中设置[x]过滤: 然后,您可以在设置高级过滤器时选择该命名范围作为过滤器: 如您所见,您将从最左侧的下拉框中选择命名范围。 At first, while setting the named range, set [x] Filter in Range Options: Then you can select that named range as filter while setting advanced filter: As you see, you will sel ...
-
从高级过滤器粘贴(Paste from advanced filter)[2022-12-11]
试试这个(也是对你的Versandrange定义的表格参考)。 粘贴不是范围对象的方法。 Private Sub loopfilter() Dim thisWB As Workbook Dim filterws As Worksheet Dim howto As Worksheet Dim advfilter As Range Dim Postenws As Worksheet Dim VersandRange As Range Dim rng As Range Dim Name As String S ... -
收到微软的回复。 一位同事对此进行了验证,发现它解决了我们的问题。 过滤器已应用于Account的默认视图(我必须承认我不知道这个!)。 单击以创建新视图时,执行的部分代码将检索当前的默认视图并将其用作模板。 因此,删除默认视图上的所有过滤器可解决此问题。 我不太确定它为什么会在添加新标准时产生影响,但我想我会选择不去考虑它! Reply received from Microsoft. A colleague has verified this and found it fixed the issue i ...