Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
78 views

Is it possible to specify the time zone rather than the offset when creating a DATETIMEOFFSET value from a string? I know I can create a DATETIMEOFFSET from a string which includes the time zone ...
Simon Elms's user avatar
  • 20.3k
1 vote
2 answers
90 views

Quartz.Net's TriggerBuilder.StartAt has in its signature the parameter DateTimeOffset startTimeUtc. Does the Utc mean that the Offset is expected to be zero? What if I passed a parameter with a local ...
t3chb0t's user avatar
  • 19.3k
0 votes
1 answer
146 views

I currently have a problem with saving the UTC time. I have an application in which you can specify a timer for a job and this is then saved in the database. However, I have the following problem: The ...
alessio venturini's user avatar
-3 votes
2 answers
160 views

I am trying to parse the datetimeoffset. This is from a SQL Server database table's column that was created as datetimeoffset lengh=10, precision=34, scale=7 Example from one of the records: 2024-07-...
Kung Fu Ninja's user avatar
0 votes
0 answers
146 views

We have a cron job scheduled at 'every day 3pm paris,' 'every day 3pm new york,' etc In our code, the logic is to find all transactions realized between midnight and noon in the specified timezone ...
Christophe Blin's user avatar
1 vote
0 answers
471 views

I am having trouble correctly transporting my date and timezone to my backend. I am using a DateTimeOffset in the backend and a TypeScript date in the frontend. I attempted to convert the date to the ...
TheDentist's user avatar
1 vote
1 answer
253 views

Below is the code that I have to check if currentDateInCST is between 10 PM and 2 AM (next day) in Central Standard Time. How do I make the startDate and endDate to be Central Standard Time ? public ...
Utsab's user avatar
  • 219
3 votes
3 answers
964 views

I want a DateTimeOffset value for tomorrow's date, 7 AM , Central Standard Time. My current code is: var tomorrow = DateTime.Now.AddDays(1); var tomorrowDate = new DateTime(tomorrow.Year, tomorrow....
Utsab's user avatar
  • 219
1 vote
1 answer
80 views

I have a scenario where I have to activate/deactivate a link based on the times assigned. Here a hotel needs to activate the link 48 hours before check-in (15:00 PM) and deactivate the same 5 hours ...
Debasish Mishra's user avatar
0 votes
1 answer
360 views

I am trying to use DateTimeOffset.MaxValue.ToUnixTimeMilliseconds() (which is 253402300799999) to designate a maximum value for some data. This time basically represents "never" or that it ...
Morten Boysen's user avatar
-1 votes
1 answer
225 views

I try to update the database to make tables related to Identity, and I'm using Microsoft.AspNetCore.Identity, autogenerated public class IdentityUser, when I write the command, I recieve this error: ...
Denisa-Maria's user avatar
1 vote
2 answers
1k views

I'd like to parse a string to an object representing a timestamp, but I'm having some trouble adding the right timezone to it. Specifically, when parsing, I can't find a way to make a distinction ...
Emil Bode's user avatar
  • 1,879
0 votes
0 answers
144 views

My epoch value is 3 days ahead of the actual time passed as input. I have a date 2023-03-21T04:34:12.234567800Z in which 00Z is the offset, but once I convert it to epoch in java, I am getting an ...
Nagesh R Shanbhag's user avatar
-1 votes
1 answer
486 views

I'm receiving this kind of string as date "2020-09-09T12:41:41 -04:00". It seems like this string contains time offset. I need to convert this to "3/15/2020, 1:23:09 PM " format. ...
Ivan Dimov's user avatar
1 vote
1 answer
405 views

Let's assume we want to build a DatetimeIndex object consisting of all Mondays and Thursdays in 2023. How would one go about doing this using pandas? Specifically, I have the start and end of a time ...
Rebel's user avatar
  • 525
0 votes
1 answer
881 views

I have to make an query on a table where the datetime field is of type datetimeoffset. The query itself is already difficult, but now working with conversions makes it even more complicated. What I ...
user1702369's user avatar
  • 1,169
0 votes
0 answers
214 views

Hello I've been trying to figure out how to tell if a DateTimeOffset is an interval of a timespan. For example: if you have a date of something like: I've found a solution that works sometimes, but ...
3xGuy's user avatar
  • 2,509
0 votes
0 answers
346 views

I have tried to make a datetime object selected from my dataframe (with a time column: (Time_utc) in Unix time), an aware datetime using to_datetime() method in pandas, but I don't seem to know how. I ...
Marble_gold's user avatar
0 votes
1 answer
167 views

i want to convert date from datepicker to toisostring in angular. my problem is when i add data from to backend a have date day before one day my code is HTML: <mat-form-field appearance="...
salah kimi's user avatar
-1 votes
1 answer
75 views

I tried DateTimeOffset dto = DateTime.ParseExact("2022003023T05:57:44.200Z", "yyyyMMMMdd'T'HH':'mm':'ss'.'fff'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal); ...
khteh's user avatar
  • 4,280
2 votes
4 answers
2k views

I've been trying a handful of methods here and can't seem to get it right. What I want to do is look at a datetime stamp column, and create a new column that has the Sunday start of that week. It ...
chitown88's user avatar
  • 29.1k
1 vote
1 answer
753 views

I am trying to calculate statistics over a shifted/offset rolling window of an inconsistent datetimeindex of a dataset in a pandas dataframe. I want to bring these statistics back to the current ...
Jiftim's user avatar
  • 13
0 votes
1 answer
165 views

I am trying to get data from an API that sends the time like "2022-08-15%2013:00:00" in string format, How do I convert it into a datetime format? I have tried - start_time = "2022-08-...
Sahil Gupta's user avatar
0 votes
0 answers
75 views

Is it possible to make Visual Studio throw a build error on implicit casts of DateTime to DateTimeOffset? E.g. var testDate = new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Unspecified); var checkDate ...
Shiv's user avatar
  • 1,444
0 votes
0 answers
722 views

I am currently developing a c++ code on Windows OS which uses windows api to set and get system time as I need to apply some offset to my local time (in the range of few seconds). As in my final ...
Gaetano Pascarella's user avatar

1
2 3 4 5
13