Questions tagged [date]
A date is a reference to a particular day represented within a calendar system, and consists of year, month and day. Use for questions about creating, manipulating and storing date information. Use with any relevant language tags.
76,988
questions
2
votes
2
answers
144
views
Whats the point of Locale in DateTimeFormatter?
Given the following code
LocalDate localDateEpoch = LocalDate.parse(
"01-Jan-2017", DateTimeFormatter.ofPattern("d-MMM-yyyy", Locale.FRENCH));
System.out.println("...
0
votes
2
answers
63
views
JS skips 2023-10-29 when generating data range
I am trying to generate a sequence of dates. However, when generating JS, it constantly misses October 29, 2023. Could someone explain what could be the reason?
In this post someone noted that on this ...
1
vote
1
answer
55
views
Different between two date, result in years and days not month in php [duplicate]
I would like differences between two date results in Years and days not month
I have tried as below
$date1 = new DateTime("2023-01-01");
$date2 = new DateTime("2024-04-10");
$...
-3
votes
0
answers
50
views
Convert from Date to OffsetDateTime with formatting [duplicate]
In my project, i have an entity called "Example" with a Date field. Since i'm working using swagger, i created the corresponding DTO using a .yaml file. Defining a "date" into the ....
0
votes
0
answers
30
views
Getting date into modal form in appscript [duplicate]
There is an edit data button on the index page. When I click on the edit button, I want the date format to appear as dd.mm.yyyy. How can I adjust the date format? For example, it says 30.06.2024 in ...
-4
votes
1
answer
74
views
Zsh script using formatted date string in FFMPEG command [closed]
In my zsh script, I am receiving a string that represents a Unix epoch, like:
myTimestamp="1719742786"
I want to change that date into a formatted string, and then store it in a variable so ...
-2
votes
0
answers
51
views
JS .getDay() returning 0 for a monday
I'm a bit confused, the .getDate() return sunday - saturday from 0 - 6.
But when I console.log this code, I get 0, but it should be 1 b/c its a monday.
What am I doing wrong/how can I fix this.
Does ...
0
votes
1
answer
45
views
Why does Date() and Calendar.current.startOfDay(for: Date()) produce different days?
I am trying to store Date data for user actions and set it to always be at start of the day no matter what time user performed the action i.e. User can perform 30 different actions and all of them are ...
-1
votes
1
answer
59
views
Why its adding one more day to the End date?
I have a problem in my script, why its keep adding one more day, if the duration of the training is one day for example, it suggest dates for me as 1/7/2024 to 2/7/2024.
function formatDate(date) {...
-1
votes
2
answers
81
views
How to get beginning/start date and month of the year in ABAP CDS view using $session.system_date
The requirement is to fetch all the material master data based on the date and the date must be beginning of the year i.e., 01.01.2024. We have declared $session.system_date as a current date input ...
0
votes
1
answer
32
views
easepick: RangePlugin not found
I'm trying to add a calendar with the option to enable range selection. I've used the following line to install it:
npm install @easepick/bundle
Then, I used the following to import it:
import { ...
1
vote
3
answers
118
views
Converting Date to epoch milliseconds
I have a Java Date (Fri Jun 28 10:00:01 GMT+01:00 2024) which I want to convert to Epoch millis to send to the backend.
I have tried the following:
typealias Dates = java.util.Date
fun Dates....
0
votes
2
answers
40
views
Extract(year from column) yields year with one decimal in SQL, why?
I used this to extract year from datetime:
select extract(year from orders.OrderDate)
It gave me year with one decimal. e.g. 2019.0
Why is this? Any feedback would be appreciated!
I also tried:
YEAR(...
-1
votes
0
answers
38
views
VBA Excel prevent file from opening after trial has expired
Hello there i am seeking some assistance with my code. I got most of it incorporated. I am trying to create a code when the file is open for the first time on someone's computer that the file ...
0
votes
0
answers
16
views
Kendo Chart date not converted correctly it's in GMT which needs to be UTC & also in correct sirt
To properly format your heatExchangerSurveyCalculationsDataSource and ensure that dates are correctly handled as UTC, here's the full implementation:
Define the toDate function to parse and return ...