tagged [date]

How to format a date with slashes in C#

How to format a date with slashes in C# When i write a date in C# by using then it returns `2010-09-10`, but I need `2010/09/10`. How do I make it output slashes?

10 Sep at 11:27

Get Latest Entry from Database

Get Latest Entry from Database How can I get the latest entry by the latest DATE field from a MySQL database using PHP? The rows will not be in order of date, so I can't just take the first or last ro...

10 Mar at 16:50

SQL-Date-Question: How to get Yesterdays date in the following formatte

SQL-Date-Question: How to get Yesterdays date in the following formatte Here is What I have So Far YIELDS What I need IS:

10 Mar at 18:49

Get week of year in JavaScript like in PHP

Get week of year in JavaScript like in PHP How do I get the current weeknumber of the year, like PHP's `date('W')`? It should be the [ISO-8601](http://en.wikipedia.org/wiki/ISO_8601) week number of ye...

4 Jun at 07:8

PHP date yesterday

PHP date yesterday > [Get timestamp of today and yesterday in php](https://stackoverflow.com/questions/4780333/get-timestamp-of-today-and-yesterday-in-php) I was wondering if there was a simple way ...

23 May at 12:3

How to format a duration in java? (e.g format H:MM:SS)

How to format a duration in java? (e.g format H:MM:SS) I'd like to format a duration in seconds using a pattern like H:MM:SS. The current utilities in java are designed to format a time but not a dura...

12 Dec at 18:36

Using varchar instead of date field types in MySQL

Using varchar instead of date field types in MySQL Is there any reason to use a varchar field instead of a date field in MySQL? I'm looking at an existing site and I see the developer has done this. I...

12 Nov at 00:52

How to find the last day of the month from date?

How to find the last day of the month from date? How can I get the last day of the month in PHP? Given: I want 2009-11-30; and given I want 2009-12-31.

25 Nov at 06:42

How to format time since xxx e.g. “4 minutes ago” similar to Stack Exchange sites

How to format time since xxx e.g. “4 minutes ago” similar to Stack Exchange sites The question is how to format a JavaScript `Date` as a string stating the time elapsed similar to the way you see time...

5 Jul at 07:45

How do I get the time of day in javascript/Node.js?

How do I get the time of day in javascript/Node.js? I want to get , 1 being 1am Pacific Time. How can I get that number in Node.JS? I want to know what time it is in Pacific time right now.

9 Sep at 06:5

Oracle Date - How to add years to date

Oracle Date - How to add years to date I have a date field sum = 4 (this are number of years by calculation) is there a way to add four years to 10/10/2010 and make it 10/10/2014?

16 Feb at 16:17

how to convert long date value to mm/dd/yyyy format

how to convert long date value to mm/dd/yyyy format > [converting long string to date](https://stackoverflow.com/questions/11753341/converting-long-string-to-date) I need to convert date value to fo...

23 May at 12:10

moment.js, how to get day of week number

moment.js, how to get day of week number I have a moment date object, and want to get the selected day number (0-6) or (1-7). I tried this, but it doesn't work help me with this please

5 Feb at 11:56

How to get the last day of the month?

How to get the last day of the month? Is there a way using Python's standard library to easily determine (i.e. one function call) the last day of a given month? If the standard library doesn't support...

28 Feb at 14:58

Add number of days to a date

Add number of days to a date I want to add number of days to current date: I am using following code: But instead of getting proper date i am getting this: Please suggest.

20 May at 10:38

PHP How to find the time elapsed since a date time?

PHP How to find the time elapsed since a date time? How to find the time elapsed since a date time stamp like `2010-04-28 17:25:43`, final out put text should be like `xx Minutes Ago`/`xx Days Ago`

Function to convert timestamp to human date in javascript

Function to convert timestamp to human date in javascript How to convert this timestamp `1382086394000` to `2013-10-18 08:53:14` using a function in javascript? Currently I have this function:

Convert a Unix timestamp to time in JavaScript

Convert a Unix timestamp to time in JavaScript I am storing time in a MySQL database as a Unix timestamp and that gets sent to some JavaScript code. How would I get just the time out of it? For exampl...

25 May at 04:43

Formatting "yesterday's" date in python

Formatting "yesterday's" date in python I need to find "yesterday's" date in this format `MMDDYY` in Python. So for instance, today's date would be represented like this: 111009 I can easily do this f...

1 Oct at 14:39

Convert a date format in epoch

Convert a date format in epoch I have a string with a date format such as containing millisec... which I want to convert in epoch. Is there an utility in Java I can use to do this conversion?

19 May at 04:35

How to set date format in HTML date input tag?

How to set date format in HTML date input tag? I am wondering whether it is possible to set the date format in the html `` tag... Currently it is yyyy-mm-dd, while I need it in the dd-mm-yyyy format.

29 Oct at 11:8

JSON date from tweeter to C# format

JSON date from tweeter to C# format How to format a JSON date obtained from twitter to a C# DateTime ? Here is the format of the date I receive : Can I do it with JSON.NET ?

19 Feb at 16:43

datetime datatype in java

datetime datatype in java Which data type can I use in Java to hold the current date as well as time?. I want to store the datetime in a db as well as having a field in the java bean to hold that. is ...

15 Jan at 17:37

Getting unix timestamp from Date()

Getting unix timestamp from Date() I can convert a unix timestamp to a `Date()` object by putting the `long` value into the `Date()` constructor. For eg: I could have it as `new Date(1318762128031)`. ...

3 Dec at 22:50

Hive cast string to date dd-MM-yyyy

Hive cast string to date dd-MM-yyyy How can I cast a string in the format 'dd-MM-yyyy' to a date type also in the format 'dd-MM-yyyy' in Hive? Something along the lines of:

9 Sep at 09:9