Questions tagged as 'date'

1
answer

Counter from a value

Hello, I'm creating a timer, to make a music progress bar. I am using the following code. However, this counter starts counting at 00:00 as obviously, but I'd like it to start counting from a value I stipulate, for example: 02:35. What change...
asked by 13.04.2018 / 21:46
2
answers

Date function with two variables

I'm trying to concatenate a date and time so that they get the value (ISO) in MySQL so that I can insert them into the database. The line of code is this: Example: datai = 20/04/2018 and horai = 14:27 $data = '$_POST[datai]';...
asked by 20.04.2018 / 12:15
2
answers

How to convert a date (string) to another format using JavaScript?

I have the following string: 2016-06-08 - 10:08 I need to convert this string to the other format: 08-06-2016 10:08 How do I proceed? function dateFormat(date) { inputFormat = new java.text.SimpleDateFormat('dd-MM-yy...
asked by 08.06.2016 / 19:12
1
answer

R: how to transform only the year (four digit) into a date frame?

I have a date frame with the column below. I would like to turn the years (with 4 digits) into dates (as.Date). The idea would be to keep only the same years. I tried some solutions that I saw there, but I still have not been able to. I'm a begi...
asked by 16.01.2018 / 11:17
1
answer

Return function true returns false on a Vue expression

I've created a method that serves to make a difference on a particular date with today's date. With the code I put, it returns true . But when I use it inside a computed value, it returns undefined . And in the computed value I make...
asked by 27.01.2018 / 17:38
1
answer

Change date format in javaScript?

My date format is yyyy-mm-dd and I want to change to dd-mm-yyyy I'm pulling the date data from an api, so I put it with the "-" example: 2017-12-31 because before it only came with 20171231 but I want to change to 31...
asked by 30.10.2017 / 16:20
1
answer

is repeating only once

Code: #include <iomanip> #include <iostream> int main() { auto time = std::time(nullptr); std::string lang_utf[6]={"pt_BR.utf8","en_US.utf8","en_GB.utf8","de_DE.utf8","ja_JP.utf8","ru_RU.utf8"}; std::string lang[6]={"pt_BR:...
asked by 16.10.2017 / 22:17
1
answer

Working with Date in Mysql, JPA

I'm using JPA and creating an entity to save a date within the database. So far so good, the problem is that I need to display the bank information according to the month of my date . Does it have a way of when to ask JPQL to return only...
asked by 14.08.2017 / 20:11
1
answer

Create an int variable that recognizes numbers in time format

I have an int variable that is picking up the current android time and comparing with more dua int variables from my database in the parse that contains the opening and closing times of a company in business hours trading works, but when a compa...
asked by 09.09.2017 / 09:17
1
answer

MySQL - Update column with Brazilian date value

I'm updating a table in a bank with more than 100,000 records to be able to perform future SELECTS to generate a statistical report. The table currently has a 'Birth' column of type varchar (10) that stores the client's date of birth in the f...
asked by 28.06.2017 / 21:47