Most voted "date" questions
Date is the representation of a specific point in a calendar, usually represented by a day, month and year, the values of which may vary according to the culture and calendar used.
Learn more…887 questions
Sort by count of
-
1
votes1
answer89
viewsConversion to int with static_cast in c++
Doing a search found something related to this error. I have the following error below: ERROR: date.Cxx: In Member Function ːint Currentdatetime::Getmonth(const string&)': date.Cxx:125:18:…
-
1
votes3
answers3370
viewsHow to convert Date to whole in Java?
When I use this code: Date data = new Date(); SimpleDateFormat formatador = new SimpleDateFormat("dd/MM/yyyy"); int dataAtual = Integer.parseInt(formatador.format(data));…
-
1
votes1
answer419
viewsDate to oracle conversion
I’m having a problem, I’m trying to save a date on oracle with formatted dd/MM/yyyy, however, in the bank it presents the date in the format dd/MM/yy. So, I got the question, if the type I used in…
-
1
votes1
answer47
viewsConvert Wrong sequence string to display
I own a string in the following format 2017-12-08, but need to display it formatted for the user as follows: 08/12/2017, I thought I’d use the SimpleDateFormat but for this I need the variable to be…
-
1
votes1
answer1074
viewsPower BI - Best practice importing large amount of data
I’m new to the ID business, and I have to do the ID of just over 25 million records. The import to Power BI is not feasible, since the file would be more than 1gb and it would be impossible to post…
-
1
votes1
answer268
viewsWorking with Data on ngInit
I have an input in my date form. Whenever the user modifies the date, it will be updated in Django and return another date. When the user enters the screen, I already bring the date in the following…
-
1
votes2
answers79
viewsjoin two tables with date condition
I need to join two tables, being the first presenting all the records contained in it, with the condition that what is in the second table has a lower price with data_ini and dt_fim using the…
-
1
votes1
answer94
viewsRemove Edittext date and add five years
I would like to capture a date with a EditText, and from it create another date adding another 5 years. How could I do this?
-
1
votes2
answers210
viewsFormat date with javascript
I’m developing an application in which I get the posts from a facebook page and need to format the post creation date that I get via json as follows: 2018-01-12T11:25:41+0000 What function should I…
-
1
votes1
answer233
viewsError when converting string to date, with dateformatter in Swift
In user registration I have an input with a mask in this format "dd/MM/YY", after taking the value of the input, which comes as a string, I have to convert it to date. The conversion always worked,…
-
1
votes1
answer812
viewsPass value for input inside table
The problem is this: I have a input product search, I type it filters and add in the table "items"; in the table "items" have input that filters services with value, and then I give split() take the…
-
1
votes1
answer87
viewsC: How to generate a date structure
good afternoon. I’m having a hard time with the C-date manipulation. I’m using the time. h library to mess with dates. I need to create a struct tm which contains the date of the day (example)…
-
1
votes1
answer113
viewsHistogram of Dates in GGPLOT
I am unable to perform the ggplot of the following table: Data Frequência 1 2016-06-11 3126 2 2016-03-05 218 3 2016-01-23 431 4 2016-06-04 145 5 2016-11-30 331 6 2016-15-01 275 Through the following…
-
1
votes1
answer462
viewsConvert mm:ss to milliseconds
I would like to convert the value mm:ss into milliseconds, could guide me on how to do this? var time = '03:51'; var mili = ?
-
1
votes2
answers898
viewsHTML/JS/PHP: Transform date entry into dd/mm/yyyy
Good morning. In my mysql database the dates are saved as dd/mm/yyyy, but the "date" html input only returns dates in the yyyy-mm-dd format, so I can’t filter the database dates, which was my goal.…
-
1
votes2
answers514
viewsSubtract extract months between two javascript dates
I’m struggling to extract the total of months between two dates ex: end date (29/03/2018) - start date (29/01/2018) = 2 months, however the dates are provided by the jQuery datepiker and if it could…
-
1
votes1
answer79
viewsReceive date from datapicker
I am creating a site where I have a datapicker using the following website I wanted when I was going to save to fetch the date that was chosen from the datapicker that appears instead of the date of…
-
1
votes1
answer51
viewsDoubt beginner ! Manipulating series
I’m doing my first analysis with Pandas in Python 3. I’m practicing with a game of Thrones dataset that contains the deaths in the books. One of the columns of the dataframe refers to the house and…
-
1
votes1
answer1165
viewsAngular Format-date with date shortened one day
I’m using an angle directive to handle the dates my directive is this : app.directive("formatDate", function() { return { require: 'ngModel', link: function(scope, elem, attr, modelCtrl) {…
-
1
votes1
answer713
viewsDate function in Portuguese
I have this code <table class="table table-hover table-bordered table-condensed lista-clientes table table-striped table-bordered table-condensed"> <thead> <tr> <th>…
-
1
votes0
answers8
viewsReport of the top pages of all time, last week - Google Analytics
I have a question in Analytics. These days one of the blog posts that I manage, entered the top pages of the week. The point is that this post, is 2016. What I would like to do, after realizing that…
-
1
votes1
answer1686
viewsGet external website image as data:image/jpeg;Base64
Is it possible to save an image as an external website date using javascript or php? because this was the only way I could get q the image to appear in the browser, when inspecting this is the way:…
-
1
votes1
answer28
viewsReturn days of the year, removing those that are in a Variable
I need a PHP function that returns me every day of the year except those that were previously selected. Example My client selected ( 01/01,02/01,04/01,12/01,12/05,18/01,08/01,10/11,05/12,11/09,01/12…
-
1
votes1
answer127
viewsProblem presenting date in Qtablewidget in python with Pyqt5
I have a program that shows product information and I wanted to present the date, only when the date comes up, this is what it shows: PyQt5.QtCore.QDate(2018, 7, 7). For those who need the code…
-
1
votes1
answer153
viewsCalculation of interval duration
Good morning, I would like to know that someone can help me create an interface in conjunction with the calculation, in PHP, between hours of work with minutes of pause. That is, we would have an…
-
1
votes0
answers83
viewsHow to convert a date into C# `/Date(1504020443813-0300)/` format for PHP?
In some applications I use C#, when I return the value in JSON, the object DateTime is serialized to a weird format, more or less like this: /Date(1504020443813-0300)/ And I’ll get it in PHP. When I…
-
1
votes2
answers8001
viewsSubtract dates in PHP
I’m with a project where I need to change information from week to week. Is there an automated PHP function that can help me subtract today’s date by a base date that I set. For example: $datadehoje…
-
1
votes2
answers165
viewsSearch full month ORACLE
I need to run a report that returns the entire amount for the previous month. He used the following form: where cliente.dtultcomp > trunc (SYSDATE-30) But there are cases of the month being 28,…
-
1
votes1
answer2601
viewsDate formatting error when it is on Brazilian daylight saving time (BRST)
I have a problem when removing from a date variable (Sun Oct 21 01:00:00 BRST 2018) that one hour difference, because it is generating a billing error, when the date is footprint of the database…
-
1
votes1
answer165
viewsreceive date from the datapicker as a Date
I put in my site in Asp.net the datepicker of this website and I want to receive the value as Date instead of String , so that it does not give problems with the date type of other countries. /*…
-
1
votes1
answer44
viewsDate range by week number
With this simple function, I can get the week number. Now, with the week number, how can I get the date range, started on Sunday? import ( "fmt" "time" ) func main() { Week(time.Now().UTC()) } func…
-
1
votes2
answers662
viewsHow to convert a date format to ISO 8601 in Javascript?
I have here a code that performs a Javascript operation. It determines the maximum date of birth that can be entered in a form. The rule is that you can only register if you are 18 and older. var d…
-
1
votes2
answers1690
viewsError Datepipe Angular 6
I just upgraded my Angular 5 application to Angular 6. When saving a record in the Firebase database using mat-datepicker checking in the database I noticed that is correctly saving the date with…
-
1
votes2
answers494
viewsSQL Left Join - shorter date longer than current date
3 tables: Processo, Evento, Alerta The goal is to make a query that returns all processes by adding the columns of the most recent event type and date MAX(DataEvento) and the next warning (shorter…
-
1
votes2
answers460
viewsChecking whether inputs are empty with Javascript
I have the code below that creates three fields in HTML these fields go through the checks below with Javascript, however, the part that should check if the person typed something does not work, I…
-
1
votes1
answer65
viewsGroup dates that are in Mysql in PHP
I have a Mysql table called apartamento_data, in it there are dates that the apartment is rented, ie unavailable for rent. Each line a date, so: 2017-05-31 2017-06-01 2017-06-04 2017-06-05…
-
1
votes1
answer299
viewsBag of words in Python
I have a news dataset and I want to separate them between two classes. For this I thought about using Bag of words, but I’m not getting it with Sklearn. I tried the following: #Bag of words from…
-
1
votes2
answers65
viewsOnly allow to select two days ahead
I would like a javascript function that allows me to select only two days ahead of the current one. for example: today is day 28/06/2018 it allow me to select from day 3, as it would count day 29/06…
-
1
votes3
answers7344
views -
1
votes1
answer806
viewsAdd days to a javascript date
Hello I need help in a function that picks the date of a date field with the number of days and displays the new date as per Example: <label>Data</label> <input type="date" id="data"…
-
1
votes2
answers51
viewsError while uploading some photos
I made a script that uploads a photo to the server and saves the name in Mysql, but some photos it does not send, some types type JPEG 3 mega up is not sent and gives error. index php.: <form…
-
1
votes1
answer290
viewsAdd months to a Calendar without modifying the original instance
I am implementing a system in which I set a specific date in a type variable Calendar and then I need to manipulate her. I would like to take the value of a few months added: Calendar calendar =…
-
1
votes4
answers2917
viewsFilter using only month and year on SQLSERVER
I need to mount a select, in which the filter is used only month and year in the parameters. This is the select I’m currently using, but I need the 'day' not to influence my search. SELECT…
-
1
votes0
answers210
viewsDatetimepicker count and mark next working days
Good morning! I have a big problem, I use the Bootstrap Datetimepicker to include a calendar just above a stopwatch on an html page, but now it has been requested that in this calendar, the next 5…
-
1
votes1
answer48
viewsJavascript Formatting of Dates
could you help me please? I would like to use the function below in a logic that I am creating, but I would need the function below to return to me only the last week of the month, I am not able to…
-
1
votes1
answer173
viewsPHP MYSQL Query Bring Results from Today and This Week
I’m assembling type a CRM, where makes queries in MYSQL with PHP to bring the appointments I have today, this week and all others. I wish you’d bring something like that: Hoje: compromisso A…
-
1
votes1
answer1121
viewsHow to read txt file separated by "|" using Python with the Pandas library?
I have a txt file with the following structure: ----------------------------------- |SKU. |DT.Compra|Dt.Chegada|SKTD| |---------------------------------| |100312 |20171202 |20180105 | 27 | |89721…
-
1
votes1
answer26
viewsAdd value to a reference value determined each different day for the whole year
How can I add a certain value to an existing value each day other than the year. Something like: $hoje = date('Y-m-d'); $amanha = date('Y-m-d', strtotime($hoje .' +1 day')); if ($hoje != $amanha) {…
-
1
votes3
answers232
viewsConvert Date to date field
I have a field that gets a date value like in the example: 24/10/18. I need to replicate this field to a date type but following the value rule that the date requires. Example: 2018-09-24. That is,…
-
1
votes0
answers55
viewsdatepicker is not a Function in typescript
I want to implement datepicker in a typescript project. I tried to use initially install datepicker by npm but could not.... Initially imported <link rel="stylesheet"…