Questions tagged as 'data'

4
answers

How do the date () function format a date in Portuguese?

In my project I am using the date() function, however I would like it to be in Portuguese, my current format is: "Thursday 6th", I would like it to be in the same model but in Portuguese, this is my formatting : // $article['article_tim...
asked by 06.03.2014 / 19:17
7
answers

How do I know if today's date is Saturday or Sunday (weekend) in PHP?

I want to know what is the simplest possible way to find out if today's date is Saturday or Sunday in PHP. What are the possible ways to do this?     
asked by 23.06.2016 / 19:55
5
answers

How to calculate the difference between two dates?

What is the most practical way to find the time difference between two dates in the standard format used by MySQL (YYYY-MM-DD)? Ex: Date 1: 2013-12-11 Date 2: 1994-04-17     
asked by 11.12.2013 / 17:59
3
answers

Difference between Date, sql.Date and Calendar

What is the difference between the java.util.Date , java.sql.Date and java.util.Calendar classes and in which situations is the use of one or the other recommended?     
asked by 10.04.2014 / 15:21
5
answers

How to invert dates in PHP, regardless of format?

How to invert dates in PHP? I need to invert dates in PHP regardless of the input format, either YYYY-mm-dd or dd/mm/YYYYY .     
asked by 18.06.2014 / 15:59
4
answers

How do I know if the date is the last day of the month?

I have a date saved in the database, and before I show it on the grid, I need to know if it's the last day of the month. I need this information to present it in a different color.     
asked by 18.08.2016 / 02:03
4
answers

How to find out if the year is leap year?

How do I know if the current year is a leap year in PHP?     
asked by 20.01.2016 / 12:58
5
answers

How to get the current date and time without using the computer clock?

I'm having trouble with date , it takes my computer clock time and I wanted it to really get the right time. The result of the following code is that date will fetch from your host server. date_default_timezone_set('America/Sao...
asked by 13.03.2014 / 20:28
2
answers

Calculate difference between dates

I need to calculate the difference between the date of registration and the current date, if it is greater than 6 months, return Boolean. I am registering the bank on the date of registration as follows: public static final String DATE_FORMAT_...
asked by 15.11.2015 / 16:08
2
answers

Why is the numbering of the months of the Date object starting at zero?

For example: var data:Date = new Date(); trace(data.month); //Supondo que o mês seja Janeiro: 0 I'd like some details as I know it's not just in ActionScript and Javascript that this happens. Why not simplify the month counter so that in a...
asked by 28.04.2014 / 15:00