Questions tagged as 'date'

2
answers

How to modify date not filled in form for the current day?

I tried to do with isset , type: $var1 = isset($_POST["namedocampo"]) ? $_POST["namedocampo"] : date('d/m/Y'); And with if , type: if ($_POST["namedocampo"] == "") { $var1 = date('d/m/Y'); } But whenever the field is not...
asked by 22.06.2015 / 21:11
1
answer

LEFT JOIN mysql Filter non-existent records NOT IN

Good afternoon, what I'm trying to do is this: I have two tables machines - stores the copier location data (address, zip, etc.). readings - stores the machine code, counters, date, etc. I wanted to display all records from the M...
asked by 25.03.2015 / 20:12
2
answers

How to format date Yii?

I need an example function to change the date to the Brazilian standard.     
asked by 24.03.2015 / 20:36
1
answer

How to convert to Database and check if a date is valid

How do I convert to YYYY-mm-dd and check if a date passed by a user via POST method is valid for my application?     
asked by 14.05.2015 / 03:51
2
answers

Format date (dd / MM / yyyy)

I have here a column in a DataGridview with the name "DBO" (date of birth) that is in the month / day / year format, I wanted to change the date style to dd-MM-yyyy but I can not. myCommand = "UPDATE DoctorBasic SET " & _ "DOB = '"...
asked by 22.01.2015 / 13:36
1
answer

Print dates 15 days in advance from a start date

I have this code that printed the dates stipulating the beginning and the end between them: How would I make the system calculate 15 days after the $ dateStart ? For example: If the start date was this $ dateStart = 05/11/2018 the sy...
asked by 05.11.2018 / 18:05
2
answers

Highlight weekends for a date range - Javascript

I'm trying to highlight the weekends for a date range. I supply the start and end date, and the script generates a sequence of dates between inputs that already exist. I just did it with the help of the people here, so I ask for help again. I...
asked by 03.01.2019 / 23:06
1
answer

mysql select order by starting today's date

I have this query that looks for birthdays of the month: $mesHoje = date("m"); $sqlAni = $pdo->prepare('SELECT * FROM aniversario WHERE MONTH(dia) = :mesHoje ORDER BY dia ASC'); $sqlAni->execute(array("mesHoje" => $mesHoje)); How d...
asked by 23.10.2018 / 16:29
1
answer

Convert mm: ss in milliseconds

I would like to convert the value mm: ss in milliseconds, could you guide me on how to do this? var time = '03:51'; var mili = ?     
asked by 29.03.2018 / 04:36
1
answer

Convert wrong string string to be displayed [duplicate]

I have a string in the following format 2017-12-08 , however I need to display it formatted for the user as follows: 08/12/2017 , I thought about using SimpleDateFormat variable is in Date format, and I am not conse...
asked by 08.12.2017 / 17:42