Questions tagged [datetime-format]
datetime-format is a transformation of a timestamp from an industry standard format, such as UTC or ISO, to a format which conforms to the standards of a particular locale or audience
3,140
questions
0
votes
0
answers
17
views
Keep the time format in an Excel column using Pandas
I've been attempting to resolve a seemingly simple issue that, despite consulting Stack Overflow, has proven elusive.
I have an Excel sheet with a column labeled 'Franquia,' and its entries are ...
0
votes
1
answer
30
views
How to convert date time format of this 17:57.4 to this format='%d-%m-%Y %H:%M:%S.%f' in python?
I am extracting column2 which has Date-Time from .csv file, in csv file i can see like this format of date time (17:57.4),but Whenever i use below code to convert its format from (17:57.4) to format='...
1
vote
1
answer
60
views
.LastWriteTime.ToString returning spurious month
I have a file, "benevoles-2.sty," that just contains 5 lines of text. I query its LastWriteTime:
PS> (gi benevoles-2.sty).lastwritetime
28 September 2023 10:59:17
PS> (gi benevoles-2....
0
votes
0
answers
21
views
git log until / since with date-time formatting
I am given some dates and times in yymmdd-HHMMss format, e.g: 231030-150735, 231102-125814, 231109-114532, etc. I am interested in using these dates and times, as given, to limit the output of git log ...
1
vote
1
answer
29
views
Transform week/year column into date format
I am trying to transform a column containing variables in 22/2022 format to datetime. Originally the variables were formatted as 202222 but I thought if I could formatt the date to 22/2022 it will be ...
0
votes
0
answers
58
views
Azure API Management DotLiquid Template TimeZone conversion
I am writing a transformation policy for an Azure APIM API. I am having trouble transforming an inbound Date Time field in the JSON formatted Request Body to an output format of the same TimeZone.
The ...
-1
votes
0
answers
42
views
Postgress has date column as "timestamp without timezone" but when I get it using EF core it give date kind = utc, why?
We use postgress db , where we are storing date without time zone, but when I get stored date in db using EF core it give me date kind utc. Which is creating an issue. Basically when we save date in ...
-1
votes
1
answer
21
views
How do I create culture appropriate date strings that match a specific layout?
This is C# (so .Net). I want to create a date string that is displayed in the correct order for the culture the code is running under that matches each of the following (en_US formatting):
ToString(&...
1
vote
1
answer
59
views
Convert DateTime parameter for SQL statement from ORACLE DB in to the accepted format (query folding for Incremental Refresh)
I am trying to set up incremental refresh in POWER BI, because my dataset contains more than 3 million rows (each refresh take now too long).
Since the table comes from an Oracle DB, my query is not ...
0
votes
1
answer
65
views
Logic Apps: How to set local date/time with UTC hour offset
In Azure Logic Apps I want to convert the UTC time.
If the UTC date/time is: 2023-10-30T18:31:05.123
I want to convert the UTC date/time to EST and format the date/time as: 2023-10-30T14:31:05.123-04:...
2
votes
2
answers
71
views
How to use locale for Java ZoneId?
Having an issue when translating my date to other languages. The way its displayed right now is
h:mm:ss a VV. My issue is if I swap my locale to zh_TW, it displays as 下午11:59 Asia/Shanghai.
I'd like ...
1
vote
1
answer
107
views
datetimeformatter doesnt return the expected output of month value in greek locale
I am building a calendar so for every month i show i want in the top to show the month following by the year like: "November 2023", the application is in greek so in greek the same result I ...
0
votes
0
answers
24
views
Devexpress GroupFormat problem for DateTime
I have a pretty simple question but can't find a way of resolving it. Pretty much i'm trying to group a DataTable by a column "Date" , which is a DateTime in the format "dd-MM-yyyy HH:...
0
votes
0
answers
65
views
Convert RFC3339 Format to Standard Date/Time [duplicate]
Been searching through a lot of posts but I can't seem to grasp how to simply convert RFC3339 String Format from API Call to Standard Central Time Zone. Here is what I am trying to do:
from datetime ...
0
votes
1
answer
71
views
PySpark StructField StringType or TimestampType
I have a schema (StructField, StructType) for pyspark dataframe, we have a date column(value e. g: 2023-10-05). Should this date format data using StringType or TimestampType? I believe StructField ...
0
votes
1
answer
106
views
How to convert any type of date format and datetime format into a particular date format using Big Query?
I have a Date column with different date format and datetime format. Now, I want to convert the format into dd-mm-yyyy. I used TIMESTAMP_DIFF,PARSE_TIMESTAMP,FORMAT_TIMESTAMP and FORMAT_DATE. Though ...
0
votes
3
answers
87
views
DateTime formatting Month regardless of culture?
Can we format a DateTime in the following way based on the users windows culture...
en-GB = 1st May 2023
en-US = May 1st 2023
without explicitly checking the CultureInfo and setting the format for ...
1
vote
1
answer
32
views
Get time formatter string for AM / PM without using time
Is there a way to get AM / PM localized string from time formatter without using any given time?
Something like:
let locale = Locale(identifier: "en-us")
let formatter = ...
0
votes
1
answer
15
views
trinio sql equivalent for utc date time
I wanted to check if there is trinio equivalent of UTC date time like we have in sql server getUTCDATE(). I basically want current date time but in utc timestamp format for Trinio sql query.
0
votes
0
answers
29
views
POSIXlt object showing NA values after conversion
I am trying to add ride length calculation to all_trips data frame in seconds. To do that I have to use difftime() function and also convert start_time and end_time colunms to POSIXlt objects before ...
1
vote
1
answer
35
views
Convert varchar to datetime format
I am working on a data movement where the source is MongoDB and target is Redshift. There is a date column in a table and the datatype of that column is varchar. The issue I am facing is, I am getting ...
1
vote
1
answer
33
views
Outputting AM/PM from a Google Calendar onto an HTML page using Javascript
I'm using a Google Calendar to display games from a hockey league. As part of this, I am also pulling some details from those Google Calendar events and displaying them on the individual team pages (...
-1
votes
1
answer
216
views
C# ASP.NET Core 7 Web API: change DateTime format to customize
I would like to ask what else can I try?
I am writing an ASP.NET Core 7 Web API with C# and I'm trying to change a field named Startdate which is of type DateTime from the database to customize its ...
1
vote
1
answer
21
views
strftime coerces all time values to midnight if one entry doesn't have HH:MM
I have a list of dates and times in character strings, and the midnight values have no HH:MM in the string because of the way they were floored to the nearest hour. I am trying to use strftime in R ...
0
votes
1
answer
42
views
prevent openpyxl from doing a date field conversion
I use openpyxl with python. I have columns with long date type example 01 January 2000 . when importing the excel file openpyxl does an automatic conversion from date to short example 2000-01-01 00:00:...
0
votes
1
answer
26
views
i have two properties Datetime ExpirationDate and Ulong Duration how to add both values
ExpirationTime = DateTime.Now + Duration
I want to add datetime with ulong I have check some type casting examples in google it did not help much could someone please guide me how can I achieve this ...
0
votes
0
answers
44
views
Angular 12 datetime picker 1 registers 1 day before the day I select
**HTML**
<mat-form-field class="w-1/2 ml-3">
<mat-label>Assignment Deadline</mat-label>
<input matInput formControlName='deadline' [min]="today" [...
0
votes
1
answer
20
views
Jquery DatetimePicker desired format is lost. The 'seconds' part is missing
Context: Helping out a co-worder fix a bug. He also did not write this code. Current code is a merge of 2 developers code. Both are not available any more.
Initially the date time picker loads and ...
0
votes
1
answer
63
views
Pandas: ValueError parsing UNIX timestamp
I have a CSV of OHLC data that is indexed by seconds since the epoch:
I am parsing it thus:
df = pd.read_csv(f"{CSV}/{filename}", sep=",", header=0, index_col=0, parse_dates=['...
0
votes
1
answer
63
views
How to format 24 hour DateTime to 12 hour?
I am working on this app and the project is running smoothly. A big part of the app is that it shows what time data was entered but I can't figure out to get the time out of the 24-hour format as ...
1
vote
2
answers
76
views
Setting xticks to the first day of the month
I´m practicing seaborn visualization with a database created from scratch.
The point is that I want to see the data from this stock market prices visualizing only the first day of the month but the ...
-1
votes
2
answers
77
views
BigQuery Parsing Date-time beyond Microseconds
So, in BigQuery SQL the following Statement Works:
SELECT TIMESTAMP("2023-07-20T12:32:36.123456Z")
However, this one doesn't:
SELECT TIMESTAMP("2023-07-20T12:32:36.123456789Z")
...
0
votes
0
answers
8
views
Datetime error, After converting column to datetime unable to perform mathematical operations
I have a dataframe and converted two date columns via to_datetime.[enter image description here](https://i.stack.imgur.com/tJECD.png) Now I am trying to subtract two columns to get difference in ...
0
votes
1
answer
187
views
how to handle Invalid time zone with BigQuery
I'm working with a BigQuery table where I got date ingested as string originally generated by the Javascript method Date();. This is what my field looks like:
Sat Aug 05 2023 15:15:04 GMT-0700 (PDT)
...
0
votes
1
answer
42
views
Timestamp format from HH:MM:SS to HH:MM:SS.SSSSSS in BQ
I need to display a datetime value from YYYY-MM-DD HH:MM:SS to YYYY-MM-DD HH:MM:SS.SSSSSS in Google Big Query. For example, the source data is : 2023-06-23 00:00:00 and I want my results like in below ...
1
vote
0
answers
53
views
TAI time from String with date time representation
In my Java task I get some timestamps in Strings in the format of: YYYY-MM-ddTHH:mm:ss.S.
These timestamps are supposed to be interpreted as TAI time (International atomic time).
I need to compare ...
0
votes
2
answers
56
views
SQL: "End-of-day" select
I have a table, which contains some data with datetime in the below format (I'm using Dremio). For all columns in the table, I am trying to select only the last entry for a given day, e.g. for date ...
2
votes
0
answers
50
views
import data from sql with datetime to dataframe julia
I have table with columns in datetimes format. I want create DataFrame like this:
query = "select * from calendar_dict;"
result = DBInterface.execute(connect, query)
result_df = DataFrame(...
0
votes
1
answer
33
views
TimeSpan timeformat mismatch C#
A line of code where im trying to create a timespan object which contains "00:00:00.000".
My time format is "HH:mm:ss.fff", took it from a code that works with this exact time ...
1
vote
2
answers
87
views
Parse string timezone in pandas
I have a list of tuples that looks like this:
[('20230728 09:30:00 US/Eastern', 194.7, 195.26)]
I am using this list to create a pandas DataFrame like this:
df = pd.DataFrame(
...
0
votes
2
answers
71
views
LocalDateTime format ok in JSON, not ok in database
I want to format date-times in a SpringBoot REST API I'm building in the format "dd/MM/yyyy HH:mm:ss.SSS". So I've put it in a global constant:
public static final String ...
0
votes
1
answer
89
views
Is this a bug in SimpleDateFormat, or a feature? [duplicate]
I recently changed... continents and temporarily forgot to signify July 27th 2023 in the European way, i.e "27/07/2023", and instead maintained the American - style literal "07/27/2023&...
0
votes
2
answers
38
views
Python-Pandas- Calculation of days using datetime columns
I have 2 columns , createddate, closeddate and need to create a new column where closeddate minus createddate and if closed date is null then impute it with sysdate.
The closed date and created ...
1
vote
1
answer
57
views
Appery.io - Refomatting an API return call NO mapping
I am using the NOAA API to return tide data for a given location. When I get the date/time info back (array with predictions.t) , it maps directly to a field in a grid using {{prediction.t}}. (t=...
0
votes
1
answer
45
views
Separate date and time in R
I have the dataset with the column consisting date and time as "character" class (the column "valid". I want to separate this column into two columns, one is for date and one is ...
0
votes
1
answer
457
views
java.time.format.DateTimeParseException in java 17 but not in java 11
I am migrating a service from jdk 11 to jdk 17. But I kept getting errors in java 17:
Exception in thread "main" java.time.format.DateTimeParseException: Text '09/18/2018 10:31:40 PM' could ...
0
votes
1
answer
52
views
export a list of datetimes date as string
I want to export a list which contains datimes date part as string but the below error ocuured :
System.NotSupportedException: 'LINQ to Entities does not recognize the method 'System.String ...
0
votes
1
answer
85
views
Convert TimeGenerated with KQL stored function
Please help me on this. I couldn't figure out a way to make this work.
My goal is to convert the TimeGenerated(7/3/2023, 14:00:00 AM) in Sentinel logs into this format here: for example, "3 July ...
1
vote
0
answers
32
views
Get Time values from angular material datepicker with custom format on change
I have date component build on mate-datepicker.
mat-form-field>
<mat-label>{{name}}</mat-label>
<input matInput
[matDatepicker]="datepicker"
[value]=&...
2
votes
1
answer
777
views
How to serialize post request with datetime in FastAPI
When I send a post request like this
curl -X 'POST' \
'http://0.0.0.0:8000/api/v1/tasks/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"title": &...