date Questions

4

Solved

I want to find out total system boot time by subtracting two timestamps. First I use this command to get the start time and end time: sudo journalctl | grep "Logs begin at" | awk '{print $6" "$7"...
Shlomo asked 28/5, 2020 at 10:44

2

In one of my R scripts I need to find the date of yesterday, I can do that easily on my mac with this command. yesterday <- format(Sys.Date()-1,"%m/%d/%Y") yesterday [1] "03/17/2017" So essen...
Boutin asked 19/3, 2017 at 1:36

0

I am working on a SaaS application that connects to a Microsoft SQL Server database, using T-SQL language. I cannot develop stored procedures, user-defined functions, or any database objects. I am ...
Rally asked 4/7 at 0:32

2

Solved

Given the following code LocalDate localDateEpoch = LocalDate.parse( "01-Jan-2017", DateTimeFormatter.ofPattern("d-MMM-yyyy", Locale.FRENCH)); System.out.println("localD...
Awn asked 2/7 at 17:53

6

Would be nice to have this in the standard Elixir library, but we don't. Date.add(date, n, :month) # where n could be +/- How would you implement this? This looks like a good starting point: ht...
Apportion asked 26/6, 2019 at 12:22

14

Solved

I have the following javascript code that convert date (string) to the Date Serial Number used in Microsoft Excel: function JSDateToExcelDate(inDate) { var returnDateTime = 25569.0 + ((inDate.ge...
Divaricate asked 26/4, 2013 at 5:43

9

i use this line to get the current date public current_date=new Date(); and i have got this result: Wed Apr 26 2017 10:38:12 GMT+0100 (Afr. centrale Ouest) how can i transform that to this f...
Unctuous asked 26/4, 2017 at 9:39

9

Hello I am trying to add the date and time to a file name in JAVA. I can get the date and time printed within the file, which I also want done, but when I place the toString in the FileWriter I get...
Hicks asked 18/6, 2012 at 17:39

4

I try to replace momentjs with date-fns but I am struggling with a very simple thing: I need to calculate startOfDay, end of day and addDays for the dates that I have got in timestamps and accordin...
Nutmeg asked 3/6, 2021 at 10:15

3

I'm trying to set up a DB for user registration and in want to have a column with the registration date in it, which should be the current time by default. I tried running this query: CREATE TABLE...
Amalamalbena asked 29/11, 2016 at 11:36

7

Solved

In Spring Boot 1.2.3.RELEASE with fasterxml what is the correct way of serializing and de-serializing a LocalDate field to ISO date formatted string? I've tried: spring.jackson.serialization.write...
Backfield asked 16/6, 2015 at 14:58

9

Solved

I want to perform data time operations using hibernate HQL. I want to add and subtract two dates as well as I want to subtract 1 year or 1 month from a particular date. How is this possible using...
Mogador asked 24/6, 2009 at 6:15

6

Solved

I want to echo the dates from Mo,Tu,We,Th,Fr,Sa,Su of the next week. My code looks like this at the moment: $date_monday = date("Y-m-d", strtotime('next monday')); $date_tuesday = date("Y-m-d", s...
Measles asked 23/11, 2013 at 12:4

3

Solved

There is no Date type. If I want an object that is only a date with no time, like a birthdate, what type would I use? I'm sure this question has been asked and answered already, but I'm not findin...
Ravenous asked 8/7, 2015 at 17:19

3

Solved

I would like convert this date:09/13/1436 (it is Hijiri) to 2015-06-30(it is Gregorian). I tried that: function HijriToJD($m, $d, $y){ return (int)((11 * $y + 3) / 30) + 354 * $y + 30 * $m - (i...
Meticulous asked 1/7, 2015 at 9:20

5

Solved

I'm working on PDF with Python and I'm accessing the file's meta data by using PDFMiner. I extract the info using this: from pdfminer.pdfparser import PDFParser, PDFDocument fp = open('diveintopyt...
Sharmainesharman asked 12/5, 2013 at 0:39

4

Solved

When I set a default value formula for a date parameter in SSRS, such as: =CDate(”01/” & Month(Now) & “/” & Year(Now)) or even: =Now the date parameter control becomes disabled wi...
Alderete asked 29/3, 2010 at 21:37

3

Using Intl.DateTimeFormat.format function you can generate a date string formatted for a specific locale. The options passed to the Intl.DateTimeFormat.format() function allow to know some things a...
Overplus asked 28/10, 2020 at 8:56

6

Solved

Can anyone please help me get the HH:MM am/pm format instead of HH:MM:SS am/pm. My javascript code is : function prettyDate2(time){ var date = new Date(parseInt(time)); var localeSpecificTime = d...
Chloric asked 16/10, 2013 at 15:19

7

Solved

I'm looking for the best way to get the first and the last day of a last month. I use them for make SQL queries to get stats of last month. I think that this is the best way, more optimized ...
Unsay asked 16/3, 2012 at 10:29

3

Solved

I am trying to convert date 06-12-2015 02:10:10 PM from default zone to UTC using ZonedDateTime. LocalDateTime localDateTime = LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault()); Z...
Earlineearls asked 6/12, 2015 at 9:14

7

Solved

I'm trying to cast a CHARACTER VARYING column to a DATE but I need a date format like this : DD/MM/YYYY. I use the following SQL query : ALTER TABLE test ALTER COLUMN date TYPE DATE using to_date...
Hocker asked 19/6, 2014 at 8:23

11

Solved

Pretty straight forward question here, I think this should work but it doesn't. Why doesn't it? CREATE TABLE INVOICE( INVOICEDATE DATE NOT NULL DEFAULT CURRENT_DATE )
Betweentimes asked 9/12, 2013 at 0:18

5

Solved

I have some doubts about the leap years, how can I be sure that by using a formula like this add.years= function(x,y){ if(!isTRUE(all.equal(y,round(y)))) stop("Argument \"y\" must be an integer.\...
Distracted asked 13/12, 2011 at 14:24

7

I know this question is asked quite a bit, and obviously you can't parse any arbitrary date. However, I find that the python-dateutil library is able to parse every date I throw at it, all while re...
Catching asked 2/8, 2010 at 15:44

© 2022 - 2024 — McMap. All rights reserved.