Skip to main content

All Questions

Tagged with or
0 votes
0 answers
12 views

I'm trying to analyze server CPU metrics using a custom billing cycle that doesn't align with calendar months. Our billing department defines each period as "one full month plus one extra day&...
何乐怡's user avatar
0 votes
1 answer
104 views

I need help with an issue regarding date returns in a CURSOR in DB2 for LUW. The Dt_Noformat field returns an incorrect date, while the Dt_Format field returns the date correctly. This problem occurs ...
silvioteles's user avatar
1 vote
2 answers
171 views

I need to recreate the code from SAS in R but I'm struggling to get the same results. I can get some rows to be the same but at the same time some other rows are different. Can anyone help with ...
Ando's user avatar
  • 53
2 votes
1 answer
107 views

I'm trying to allow a user to input date into a cell using an InputBox. I'm using dd/M/yyyy format. However, every time InputBox receives a date that could swap the day and month, it does. E.g. 3/2/...
zizi's user avatar
  • 33
1 vote
1 answer
129 views

I am trying to create two columns in my dataframe, with the days passed since the last match played from both the home team and the away team. This is what my dataframe looks like: Date ...
AjWinston's user avatar
  • 189
0 votes
1 answer
70 views

I'm trying to get SwiftUI to format dates in two different calendars using Date.FormatStyle, but I can't get it to work. What am I missing? Here's a minimal example: import SwiftUI struct ContentView:...
Grimxn's user avatar
  • 22.6k
-4 votes
1 answer
84 views

I've been tasked to write a query where a month and date combination from one column needs to not equal another date column. i.e. MED_EFF_DATE = 06/01/XXXX and MED_CANC_DT NOT EQUAL 08/29/XXXX I've ...
Johnny Bones's user avatar
  • 8,499
-1 votes
0 answers
59 views

I have to import quite a bit of documents into SQL Developer, but for some reason it is unable to read the date on multiple columns and I have to go in and manually select the correct date format. ...
Ryan Trammel's user avatar
1 vote
2 answers
162 views

I have a vector of dates where I want to get the next n (any integer) dates. dates <- structure(c(18946L, 18947L, 18948L, 18949L, 18950L, 18951L, 18953L, 18954L, 18955L, 18956L, 18957L, 18958L, ...
iembry's user avatar
  • 992
5 votes
1 answer
210 views

With Howard Hinnant's date.h (I am using C++17), how can I get Monday's date and Friday's date using the library? I can get today's date using this: auto todayDate = date::floor<date::days>(std::...
segmentation_fault's user avatar
0 votes
0 answers
89 views

I am trying to filter files based on the POSIXct format in R using tidyverse synthax. What I need is to select all files that are within a timeframe between sunset and next sunrise for each day. I ...
trying-my-best's user avatar
0 votes
1 answer
55 views

Need a SAS date in mmddyy8. format running Windows 11 Enterprise on PC SAS 9.4. Code below, does in fact, derive the first date ("Q_start") of the month of the current quarter of the ...
MeatPopsicle's user avatar
Advice
2 votes
2 replies
175 views

Please help me understand why "in" and "of" are so drastically different for DateTime when using a string to find a date. This works: $LastSunday = new \DateTime('last Sunday ...
Matthew Brown aka Lord Matt's user avatar
Best practices
0 votes
4 replies
79 views

I need two DateTime objects to pass to a method. I'm not all that familiar with the class. After some head scratching and web searching, I have a working solution, but I don't like it. Currently, I'm ...
Matthew Brown aka Lord Matt's user avatar
0 votes
1 answer
84 views

At the moment I delete records like this: DELETE FROM users WHERE DATE_SUB(CURDATE(),INTERVAL 1 DAY)>=last_login last_login = DATETIME field This deletes records after 24 hours but it should ...
WeekendCoder's user avatar
  • 1,081

15 30 50 per page
1
2 3 4 5
5179