Questions tagged as 'date'

2
answers

Check if a date is valid

I'm getting a date in the format: string: "01/03/2010 23:00" How can I verify that this date is valid? By validate, disregard questions of days or months having wrong numbers. The validation would only be to see if there are no letters a...
asked by 26.10.2016 / 16:17
1
answer

How to convert Time type to String?

I have a horaConsulta field and I can not convert it to String DAO stmt.setTime(4, new java.sql.Time(consulta.getHoraConsulta().getTime())); Servlet Time horaConsulta = converterTime(request.getParameter("horaCo...
asked by 19.07.2015 / 19:28
2
answers

Format written date "ex. January 12, 2017 "to the standard (Y-m-d)

Is it possible to pass this date "January 12, 2017" to the US standard (Y-m-d)? Any examples? Thank you.     
asked by 15.08.2016 / 00:23
2
answers

How to choose date in timestamp

I have the following line of code: round(microtime(true) * 1000) to get the timestamp in milliseconds of the current time. I need to pick up a future date, example, 10 or 5 minutes ahead. How can I do this?     
asked by 15.08.2016 / 20:34
1
answer

Mark day of each week by repeating a number of times

I'm making a calendar and I need to create a form that repeats a number of times every weekday. Example: Today 09/11/2018 I want you to repeat 3 times the day of the week getting like this? 09/11/2018 16/11/2018 23/11/2018...
asked by 09.11.2018 / 12:31
1
answer

Display day of the week, according to the date used in the PHP query

Good afternoon everyone, I have a question in a course project. I have a form where I look for patients scheduled on a particular day of the month. When I perform the query to present the scheduled patients, I must also present the day of the...
asked by 20.12.2017 / 19:05
2
answers

How to format date php, to display 'Hojé as 00:00' and 'Yesterday as 00:00'?

I have a record in the TIMESTAMP database and wanted to display for example: If the date is current, show: 'Today at 00:00' If yesterday's date is in the database, view 'Yesterday at 00:00' And if it is more than 1 day ago, display the d...
asked by 08.06.2017 / 21:53
1
answer

What is the most recommended and performative way to manipulate dates in PHP?

In PHP we can manipulate dates using functions such as date , strtotime , mktime , and so on. and from version 5.3 of it we can manipulate dates in an object-oriented way with the DateTime , DateInterval , DatePeriod classes, and so on. >...
asked by 01.04.2017 / 16:52
1
answer

Doubt Javascript Date () [front-end]

I'm building a personal blog using GitHub Pages and a desktop app with NWJS to do the back end administration however I have a big question when presenting dates on the front end. Because this is a "static" site, the posts are markdown...
asked by 07.08.2017 / 08:24
3
answers

Formatting dates for display and storage

In this Android application, I have a date field in the SQLITE database table, defined as: String createTable = "CREATE TABLE " + TABLE_RUNS + " ( " + _ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + COL_RUN_DATE + "...
asked by 26.01.2017 / 03:10