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?
- Modified
- 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...
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:
- Modified
- 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...
- Modified
- 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 ...
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...
- Modified
- 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...
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.
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...
- Modified
- 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.
- Modified
- 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?
- Modified
- 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...
- Modified
- 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
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...
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.
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`
- Modified
- 19 Sep at 17:30
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:
- Modified
- 9 Jan at 06:23
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...
- Modified
- 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...
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?
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.
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 ?
- Modified
- 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 ...
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)`. ...