Questions tagged as 'date'

2
answers

Converting String to Date and adding days to a specific date.

I'm trying to sum up a date with 30 more days, below the way I'm trying to do: function validarContinuacaoCiclo(){ var dataEmissaoGuia = $("#hiddenDataEmissaoGuia").val(); var dataPrevistaAdministracao = $("#dataPrevi...
asked by 12.08.2014 / 02:19
1
answer

Check if date is between two dates in the 30 min interval

I have a service that before saving some value in the bank, it needs to be checked if it is within some time already saved in the bank. Each period consists of half an hour. ex: 10:00 10:30 11:00 If the user tries to put 10:31, an exception...
asked by 09.05.2018 / 21:27
1
answer

Subtract date from a DateTime [duplicate]

I need to get current date and subtract 3 months. It was doing conversions and subtracting 3 but going to go wrong at the turn of the year, in January for example it will result in month -2. I think there is a better way to do this.    ...
asked by 08.12.2017 / 13:52
1
answer

Date conversion / formatting issues

I'm having trouble formatting a date to be useful, I need to format a date that is Tue Nov 22 00:00:00 BRST 2017 (example) to date in dd/MM/yyyy format. I've been seeing some links, such as: How to convert one string in date or date? but i...
asked by 08.09.2017 / 02:24
2
answers

Error trying to compare date

I'm trying to create a validation, to know if the user is at least 12 years old. I tried to base myself on this question: Comparison between dates . However, I think I'm comparing it wrongly, since it gives me the following error: Exce...
asked by 09.09.2017 / 21:19
1
answer

Convert Data generated in C # to ISO format in Javascript

Hello, I'm doing a website where I use an API built in C #. My problem is that when I get a date from the server, it sends me that format: [{ "dataLiberacao":"\/Date(928160400000-0300)\/", "dataReg":"\/Date(928160400000-0300)\/", "...
asked by 21.11.2016 / 14:02
1
answer

Structure of the Commit

I would like to know if you can change the structure of a commit, in the case before it is made a predetermined structure, example: GIT_AUTHOR_NAME = '$name(Previamente registrado)' GIT_AUTHOR_DATE = '$date(data do sistema)' GIT_COMMITTER_DATE...
asked by 30.06.2016 / 17:00
2
answers

Calculate hours in PHP?

I'm developing an electronic dot in PHP and would like to know how to do the two-hour Cachulo, one of which is negative, for example: Day 1: -05: 00: 00 Hours day 2: 08:00:00 How would you do the two-hour bill to get the balance of hour...
asked by 07.07.2015 / 23:32
2
answers

SELECT column type DATE by HH24: mm: ss

Hello, I have 2 DATE fields, depending on the snippet below: ...hr_inicio DATE NOT NULL, hr_fim DATE NOT NULL, ... And I need to query these fields using only the values for the HH2...
asked by 11.12.2018 / 19:11
1
answer

Error using date type on android

I have this code: String dt = "2017-01-04"; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); try { sdf.parse(dt); } catch (ParseException e) { e.printStackTrace(); } But when I use dt, in a me...
asked by 06.07.2017 / 15:49