date Questions

7

So I have iso date time that need to be converted from a string to date object. How do I keep date from converting it to local browser timezone. new Date('2013-07-18T17:00:00-05:00') Thu Jul 18 2...
Shuping asked 19/7, 2013 at 17:4

5

Solved

I can get today's date: Sys.Date( ) But how do I get last Friday's date? I tried: library(xts) date1 <- Sys.Date( ) to.weekly(date1 ) But this gives an error.
Replicate asked 10/3, 2015 at 18:42

16

Solved

I need to get previous month and year, relative to current date. However, see following example. // Today is 2011-03-30 echo date('Y-m-d', strtotime('last month')); // Output: 2011-03-02 This ...
Flashbulb asked 30/3, 2011 at 16:56

55

Solved

I'd like to tell the difference between valid and invalid date objects in JS, but couldn't figure out how: var d = new Date("foo"); console.log(d.toString()); // shows 'Invalid Date' console.log(t...
Fairfax asked 30/8, 2009 at 11:34

7

I need to find this month, previous month and the next month of a specific date. For example, date was set to 31 of every month, what I expect to get the date is 2018-02-28, 2018-03-31 and 2018-0...
Joshia asked 13/3, 2018 at 20:27

3

I am using jinja2 templates (with Ansible) and in it i require to check the difference between two dates. I do not have the epoch of the dates but i do have them in yyy-mm-dd HH:MM:ss format (no mi...
Placida asked 4/8, 2016 at 7:4

3

Solved

Is there any function in PostgreSQL that returns Boolean whether a given string is a date or not just like ISDATE() in MSSQL? ISDATE("January 1, 2014")
Isolate asked 19/8, 2014 at 2:14

20

Solved

I need to increment a date value by one day in JavaScript. For example, I have a date value 2010-09-11 and I need to store the date of the next day in a JavaScript variable. How can I increment a...
Orle asked 9/9, 2010 at 7:22

12

Solved

How can I calculate the day of the week of a date in Ruby? For example, October 28 of 2010 is = Thursday
Vernal asked 28/10, 2010 at 15:43

10

I'm coding a script where I require to save the current date, and the date 1 month from that date. I am pretty sure that the time() variable works, but I am not sure how to +1 month onto that? An...
Woollyheaded asked 6/6, 2014 at 12:11

11

Solved

I want to combine some text with a date in Excel 2013. Let's say I have a cell A2 with a date like 30-10-2014. I tried to append the date after the text with this formula: ="Some text and a date: ...
Midgut asked 4/12, 2014 at 23:42

11

The field DATE in the database has the following format: 2012-11-12 00:00:00 I would like to remove the time from the date and return the date like this: 11/12/2012
Putrescible asked 11/1, 2013 at 14:9

20

Solved

I have an array of random dates (not coming from MySQL). I need to group them by the week as Week1, Week2, and so on upto Week5. What I have is this: $dates = array('2015-09-01','2015-09-05','20...
Asparagus asked 16/9, 2015 at 18:18

6

Solved

Have simple function which returns an error: ERROR: date.toLocaleDateString is not a function TypeError: date.toLocaleDateString is not a function at FormatTime (../Src/rootdialog.js:87:58) ...
Pigtail asked 17/8, 2017 at 0:41

5

Solved

I have the dataframe below (using python/pandas) and wish to convert the q_string q_visits q_date red 1790 02/10/2012 00:00 blue 364 02/10/2012 00:00 current 280 02/10/2012 00:00 molecular 259 02/...
Petras asked 4/9, 2013 at 15:45

18

The clock kinda works. But instead of replacing the current time of day it prints a new time of day every second. I understand why it does that but I don't know how to fix it. I would appreciate if...
Phial asked 9/9, 2016 at 19:21

3

Solved

I am trying to create a new object in my Parse.com database through Parse's REST API, using an HttpsUrlConnection. Their REST API only accepts JSON. I have gotten everything to work, where the data...
Anachronistic asked 8/8, 2014 at 10:50

8

Solved

I have a date object that's created by the user, with the timezone filled in by the browser, like so: var date = new Date(2011, 05, 07, 04, 0, 0); > Tue Jun 07 2011 04:00:00 GMT+1000 (E. Austra...
Macarthur asked 28/6, 2015 at 4:23

3

Solved

This works with Java 11 but does not work with Java 17 DateTimeFormatter format = DateTimeFormatter.ofPattern("MMM dd, yyyy") .withLocale(Locale.UK); format.parse("Sep 29, 1988&quot...
Antioch asked 21/9, 2021 at 10:58

1

I created a 4-4-5 calendar by repurposing some code here: How to create a 4-4-5 fiscal calendar using python? import pandas as pd import datetime as dt def create_445_calender(start_date: str, ye...
Wellbeloved asked 17/1, 2023 at 20:50

5

Yes, I know; this question has been asked thousands of times in hundreds of different places, but Google Sheets stubbornly refuses to let me convert a date such as "9/18/2004" to "20...
Gauhati asked 27/1, 2021 at 17:39

11

Here is a list of dates: 04-22-11 12-19-11 11-04-11 12-08-11 09-27-11 09-27-11 04-01-11 When you copy this list in Excel, some of them are recognized as dates, others not, in the following manne...
Chloropicrin asked 11/1, 2011 at 17:59

5

Solved

I am trying to convert a string in OffsetDateTime but getting below error. java.time.format.DateTimeParseException: Text '20150101' could not be parsed: Unable to obtain OffsetDateTime from Tempor...
Heraldry asked 1/6, 2017 at 3:19

12

Can anyone help me to change Gregorian date to Persian in JavaScript? I want to use it in HTML and JavaScript.
Lonne asked 23/2, 2016 at 7:3

12

Solved

I am trying to calculate the difference between two LocalDateTime. The output needs to be of the format y years m months d days h hours m minutes s seconds. Here is what I have written: import j...
Boysenberry asked 9/9, 2014 at 14:41

© 2022 - 2024 — McMap. All rights reserved.