Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
![](/static/devrant/img/pipeless-devrant-banner-white.png)
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "date?"
-
Seriously, why? WHHHYYYY?
US-date-format sucks, every FUCKING TIME!
The only time I really notice is when the "month" is larger than 12:
05/13/2017
"5th of Dec... oh. Fuck. Not this shit again..."
(It makes no sense. Absolutely none.)34 -
Dear assholes of the internet. Next time you publish an article/tutorial/story etc, PUT THE FUCKING PUBLICATION DATE AT THE TOP.
I don’t care about your need to be minimalist, FUCK YOU, INCLUDE THE DATE.18 -
7/4/2018
I can never read this date properly
Is this 7th april
Or is this 4th july????
Fuck your american date format41 -
A girl just canceled our first date to watch Avenger's Endgame with her friends. Pres ++ to pay respects.45
-
(regarding a discussion with a female programmer about an event)
Me: ... But Id feel so out of place, I don't even have a date
Female: well you can always just import a date
Me: what do you mean? 😕
Female: import Java.util.Date;13 -
As a Java Dev, the thing that frightens me most about colonizing Mars is that we have to rewrite the Date class...8
-
When interviewing a dev, ask them what they think about time zones. If their answer is "fuck time zones", hire them immediately.4
-
“So, using whatever language you want, php, python, perl, javascript, program something that gets today’s date and time, then writes it to a file.”
Me:
$ date > today.txt
“We don’t feel you have the right skill set.”
https://stilldrinking.org/interview...14 -
1) Build enough confidence to ask a girl out for a date.
2) find a girl to ask for a date.
3) ???
4) profit10 -
Just noticed the date format mm/dd/yy. Can we switch (or give an option to switch) to a superior to format like dd.mm.yy or iso 8601
@dfox20 -
Biggest terminal hack I've discovered till now which is so fucking obvious I can't believe I literally just started using it:
Executing the date command right before and after another command/series of commands to see how long shit takes.
$ date; command or commands; date
This is incredibly useful when rendering loads of data in screen sessions!
I actually feel rather retarded for only thinking of this now.17 -
Me: will you be my date this valentine's day?
Her: What? No ways!!
Me: sudo will you be my date this valentine's day?
Her: Hell ya !! 😘
.
.
.
Me: *wakes from sleep* Damnit, wish I could sudo everything!!😓5 -
*Friend after a date*
Friend : Bro what according to you is a perfect date?
Me :DD/MM/YYYY....
Everything else is just confusing.
Friend:😒16 -
Valid Until Invalid date? Well, that kinda makes sense.undefined js government javascript node.js paid success appointment reference number application form govt4
-
We're not the wrong ones here...
I consider this a failed IQ test, so the website should just ban the user.9 -
Programmer's Valentine!
The only date he gets is software up-date.joke/meme jokes programmer life programmer humor valentine funny techindustan coder cartoon programming jokes valentines day comic2 -
She: What's your idea about perfect date ?
Me: I'll recommend mm/dd/yyyy.. others are really confusing
.
.
***Blocked***20 -
The developer's date
-----------------------------------
Me working as a developer, after a date with a cute girl
Bestie: Bro, how was the date?
Me: We cant be in a relationship.
Bestie: Why man? She is cute, she likes you and she has got a decent job.
Me: Yeah the third one is the problem. She is a SOFTWARE TESTER!!!😫9 -
I bought flowers for my date. Online.
When I registered, the website send me via email my 30 character long password.
😥
So I try "forgot password". The genius website sent me, guess what, my 30 character long password...
For fuck sakes!!!! You had one job.... Hash the fucking password!!!!
I'm afraid these people will probably get hacked soon (murphy law).
Sha256.. Guys please...12 -
Dammit, just put the date somewhere next to the title when writing an article. It's amazing how much context might be missing if there's no date when dealing with software issues.9
-
!rant
A colleague of mine is having a date tonight and it is not an update. he was insanly excited. so I hope that will calm him down a little. good luck tonight bro ;) -
I today have seen lovers'name carved into a tree. I don't think it's cute. I just think it's strange how many people take knives on a date10
-
So how old is devRant?
I saw the joined date on @dfox profile but didn't know if it's 1st of November or 11th of January.
If it's the second then I don't like the date format. 😁17 -
Bought this a while ago thinking i would read, never ended up doing it. Now i am actually trying to learn it, and this shit is out of date8
-
While working on my one of the first project in java i ended up using deprecated Calendar API for the date. Since deadline was near i thought it would be a good idea to use the JCalendar API for as date picker (which is a third party API).BAD IDEA. It was the night before the submission round about 11pm when i realized that there is no way to convert JCal object into Calendar and it turned out it is not working as expected you have to subtract a particular number from the year to get date right.
To convert JCal into Calendar i used the toString function to get the date in string sliced it using substring into year,month,day then had to assign date to Calendar object via constructor.
Had to write 70 lines of code just to convert JCal into Calendar...
And then there were other complications related to this problem. Had tu pull an all nighter just to solve date related problems
LESSONS LEARNED :
NEVER USE A DEPRECATED API
NEVER USE THIRD PARTY APIs WITHOUT RESEARCH7 -
Javascript being Javascript...
var date = new Date()
Mon Aug 13 2018 09:17:28 GMT+0200 (Mitteleuropäische Sommerzeit)
date.getDay()
1
date.getDate()
13
date.getFullYear()
2018
date.getYear()
1186 -
I gave you a nice date picker to use but instead you choose to type in the date. Type in an incorrect date and then yell at me for it. If I could enter the dates for you , you would not have a job .... stupid users4
-
Q: Tell me what date types do you know.
A: Excuse me!? Date types?
Q: Eh, I see you didn't get it...12 -
Started work on redeveloping a module for our system, I look at the database document and see two fields, one for date and one for time. Both are full date time and the data is stored like so:
Date I want to store: 2016-04-09 05:54:00
Date: 2016-04-09 00:00:00
Time: 1899-01-01 05:54:003 -
Just why????
long d = date(toDate) - date(fromDate); // days
Please just name the variable days............2 -
API returns two date time in json (x-date-time, y-date-time) both of which are coming wrong.
Instructions for consuming API :
Take date part from y-date-time and time part from x-date-time and combine them so you would have the desired result1 -
var date = new Date();
var month = date.getMonth();
console.log(month); // 2
who thought it would be a good idea to start the months of at 0 rather then 111 -
Fuck you javascript and your bizarre Date object.
May your ass itch, and arms become too short to reach.
Spend a good hour debugging why this fucker:
(new Date).getDay();
Returns 3, when it's actually the 2nd of May.
Turns out the value returned by getDay is an integer corresponding to the day of the week.
(new Date).getDate(); it is, ಠ_ಠ15 -
They actually did it...
Cheezus Crust, they actually "generated" 3 HTML selects to let a user chose a Date.
(nvm the line numbers, it ends at 3000)
They didn't even bother to generate the fucking arrays lol15 -
Holding off the website launch date because IE 8 isn't compatible! Can't wait for IE to be discontinued!9
-
My tinder date is playing journey on a ps4 pro 4k tv while i am taking a shit right now.
Needed something for her todo while i do my buisness...3 -
"You must update Messenger as it's been too long since you've updated!
Time since last update: -903 years"
oh
well ok5 -
There it is!! First date fuckup due to the 'happy new year' thingy..
I am surprised it took me so long! xD14 -
Turned on this old phone after 4 years, devrant was the only app still working without needing to update and logged in 👌
"I have a date! 😍
var date = DateTime.Now;"
Was still stuck in concepts waiting to be posted on here 🤣6 -
Four beers with an expiry date of 2022. What do you do? Easy, drink three so you don't care about the expiry date of the fourth and enjoy.
Didn't tag it as joke because it's seriously what I just did12 -
!Rant
ninePlusTen($date = '29/11/2017') {
if(preg_match("/(29.11)|(11.29)/",$date){
$age++;
echo 'Happy birthday!';
}
}11 -
Someone else always have git log like this??
Or just me? 😂 ;-)
commit 6e71f545c3
Author: ShellAddicted
Date: Sat Sep 9 02undefined21 2017
it Works!!!
commit 6ac2c98bf
Author: ShellAddicted
Date: Sat Sep 9 01undefined47 2017
works more or less
commit 411b8e12
Author: ShellAddicted
Date: Sat Sep 9 00undefined00 2017
Initial state not working.
EDIT:
I just noticed that devrantron modified (bug) my rant (see the undefined in times)3 -
Modern approach to displaying dates is shit
I want to see a face of a fucker who decided that "5 YEARS AGO" has more meaning than exact date "15 Sep 2019". All apps that use that fucking retarded date representation are useless shit, worst UX ever.7 -
Q: Whom would you like to date?
Me: Carbon (**whispers in mind** carbon dating and laughs all alone)3 -
Date a programmer;
We break keyboards;
Not hearts;
Seriously? is this fucking true? I guess not 😔😂5 -
Tried disney+ for a week, I was not amazed by the catalogue. went to cancel my subscription and saw this. I guess if my trial ends at an "invalid date" then it would not end at all5
-
!dev
I went on a date over two weeks ago. It seemed to go well, but the next week she called me and said she wasn't interested, giving reasons why.
I was disappointed but responded as friendly and responsibly as possible. It was the first time a girl had said no to me, so it hurt.
While it hurt to be rejected, I also felt relief because her reasons prevented us from continuing down a path of mismatched expectations.
The next day, I told a close friend about the outcome of the date because he knew of my interest in the girl. We talked and laughed about it like a missed train on a rainy day.
Just last night, my friend told me he met with the girl, and I was shocked. He said he didn't know why she had said no and wanted to talk to her to try to change her mind.
I was angry because I felt this was a dumb move. He said he was only trying to help because he thought she was a good match for me.
I had already closed that chapter and moved on, so I told my friend I didn't care what they discussed and that I had seen her missed call on my phone. If she calls me again, I won't pretend everything is okay and will let her know that I never sent my friend to convince her further.
He told me to pick up her call and hear her out, but I personally find it disturbing if someone needs to be convinced by a friend to get a positive response.
Yes. I was disappointed by the rejection, but I respected her decision. I was frustrated by my friend's actions, but I will stick to my decision and not pretend everything is okay if she contacts me again.
She just sent a text now! oh my f*cking friend…8 -
When you type date in your terminal to look up current date, that's when you make it to the nerd's herd.3
-
Tips from the "oh that wasn't the best idea" category: Don't store "date of birth" as UTC date/times.1
-
What's the point of using the tracking then?
Or why don't you just show me the 3 weeks date as estimated arrival date instead of the wrong date showing on the tracking report currently?
Adding 7 days is fuck simple.
Why give wrong reports and false hope?4 -
what it's like when someone doesnt use "mm/dd/yyyy" or "dd/mm/yyyy":
"I need a name for your reservation. It can either be base64 encoded or a sha3 hash"
"Yeah, I'm on my way, how many light years is it past 404th street?"
"Oh, cool, my birthday's coming up, too. How many eons away is it?"9 -
Hey guys, this is my first rant. I like this friendly community very much so far and hope it stays that way. So here it goes...
I have this Trello app on my Android phone. It has this nice feature - calendar... But week starts on Sunday. So I started investigating, how I could change it to Monday. Googled and found that you have to change the language, which I did. Now I wish I had this nice ISO date format yyyy-MM-dd, but this motherfrakker doesn't allow me to!
How much I hate this little piece of shit! What does he want from me? Download the sources, add the functionality, compile for a week and flash it into my Xiaomi?!13 -
We had a group presentations today, and one group had a simple home screen for a reservation system. It consisted of a date picker and some labeled buttons.
My teacher said, "I don't like how the date search field isn't labeled, I don't know that, that field is for a date".
It's a date picker, that date icon is a universal sign for pick a date, the group said.
He was our programming teacher in our first year 🙈7 -
Pissed off:
Trying to write a date function that converts an Int (seconds) to days hours/minutes/seconds.
Get stuck when I build the output-string because I need to mix string and Int. I am used to C# and PHP, C++ just screws it up for me.3 -
*So I have a function where the date is formatted as 20180317 and get returned if I pass a date to it.*
Junior Dev: I'm selecting March as a month but it's showing 20180217 and not 20180317, what should I do?
Me: I've written function for formatting date just go there and there will be date.getMonth() just add 1 to it by doing +1.
Junior Dev: It's still not working!!!.
So I went there and checked what she did, and she did this .....
date.getMonth(+1);2 -
Story of coding affecting my dating?
Well whenever I start a new language, I always find myself having difficulties with time and date structure-
Wait, that's not the subject? ... oh the other kind of "date". Well, not finding difficulties for something I'm not looking forward to lol -
<?php
define("NOW", date("Y-m-d H:i:s", time());
/* ..... more code ..... */
$nowUnix = strtotime(NOW);1 -
- Hey darlin, how about u n me go out for coffee on 2021-02-19?
- Hey lovely. I got an event from 2021-02-19T05:45:00Z to 2021-02-19T07:15:00Z. How about we meet at 2021-02-20T04:00:00Z?
- Perfect, there's a movie at 2021-02-20T06:10:00Z
- It's a date then2 -
I hate complicated and out of date documentation!!!
if (me == angryClickityClackity) {
headButtKeyboard = True;
}else{
headButtKeyboard = false;
}15 -
29 november 2018 i was blessed for the first time after months and months and Months of trial and error
not gonna say what happened cause its kinda private
but i will forever remember this date. this date is sacred to me.7 -
Why they are keep assigning tasks (new features as minor fix) till release date. And want me to complete it a week before release date.
HOW?2 -
https://www.devrant.io/rants/163227
that means ranters have posted 163227 rants till date.
happy ranting!!!1 -
Way too much stuff is having a Y2K type date error in 2020! So frustrating that people did not even think 10 years ahead. All this stuff is solved already and not implementing it well is just lazy.6
-
Update to this rant: https://www.devrant.io/rants/210575
Now, roughly one week before the revised delivery date, they realize that we won't be able to finish the workload on time and they are thinking about moving the due date...
by two weeks 😒2 -
Happened a few ago when I started taking SQL classes in school. We had our theory exam with one question asking us to display the date of the following day. And since I knew dick about working with date, I decided to make the computer sleep for 86400 seconds and print current date (which was like the only command I knew about dates).I feel really stupid thinking about that now.. but it was fun :P3
-
Fucking ant-cumstained garbage bag. How come you are so inaccessible you satan website.
I wanted to look at someone on facebook. But for some things you need an account, so I sign up with my spam mail and a random name and the birth date that was filled in
When I try to login facebook says: your account might be compromised, what is your birth date to verify it's you.
Wtf I just made this. So I fill in the standard birth date.
WRONG BIRTH DATE YOU CAN'T TRY AGAIN FOR THE NEXT 15 MIN
Im glad I abandoned you long ago.
But apparently you know you suck since you don't allow new users? -
Used to Google all my `man` pages... Don't really know why. Formatting maybe. Then I typed `man date`... I use `man` for my `man` pages now.3
-
don't use natural keys
I accidentally registered with the NHS with the wrong date of birth. NHS records are keyed by date of birth among other things. This will have devastating consequences.8 -
Spring JPA might be annoying sometimes...
public MyResult findFirstByIdentities_CompanyIdAndIdentities_UserIdAndFromDateAndToDateAndFormatAndIdentities_SourceAndStatusInAndCreatedOnAfterOrderByCreatedOnDesc(String companyId, String userId, Date fromDate, Date toDate, String format, String source, Collection<String> status, Date createdOn) {...}
I know I know, efficiency is weeping in a dark corner. Will deal with it later2 -
When a project manager files a bug report:
"does not match the mockup.
See G:///Departments/Digital/...(client name)/(job code)/(project number)/creative/mockups/round 4/final/final 2/final_(date)/final-(date)_v5.psd"2 -
Most interesting bug (recently at least)... In JavaScript, you can create a date with new Date(dateString).
...if it starts with the year or is ISO format, it will take the user's local timezone into account. if you did something like new Date('6-Jun-16') it doesn't care about time zones... so depending on how we passed a date via the api, we'd get a different actual date.4 -
I used to have time to read up on new web development tools and techniques and it helped me get a better job.
Now I have a better job I'm always busy, which I love, but it's harder to keep up to date.
I do some reading in my own time but it's more difficult to focus.
Thinking about it, I suppose I do keep learning just by being at work and solving new problems.1 -
Just bought a book that covers some techs that I use, but want to get better at. I get less than a chapter in, and realize something is horribly wrong. I check the publication date. 2015.
I am so fucking stupid.3 -
Client: "According to the Postgresql Version Support Policy, 9.3 will be expired by September 2018. That's only a few months away."
Me in thought: "Expired? Like a rotten egg? With an expiration date? OK, chill. His English isn't that good. Maybe he meant that support expires since its EOL."
Client: "We need to upgrade so that we can continue using the database."
Me in thought: "Yeah, he really meant "expired" in database too."4 -
Commit messages:
1- Defect 6380: fix update of user without end date
2- Defect 6380: fix update of user without end date 2
3- Defect 6380: forgot unit test
4- Defect 6380: fix test
5- Defect 6380: dammit!
6- Defect 6380: raaaaaah!!!!
7- Defect 6380: kill me now -
Moment.js, because without it, formatting and converting JS Date objects to other timezones is a bitch
-
When date format is hard coded and application goes international. Application works ok until day turns 13. Error is seen a couple of days later, then it's the 1st again and everything is ok. Just to mention one of many strange errors. Just to make it harder, app works well if running in other countries that is using the same format. Daahh1
-
2020 and Chrome has yet to decide upon a standard style for they inner form controls.
This is a date field with:
- a blue gradient "clear"
- a gray-bg spinner
- and a transparent bg calendar dropdown
2020!!!! I don't want to use huge date pickers anymore, Chrome!4 -
When you need a really large date, are unsure of the system culture and have forgotten about `DateTime.Max`
-
who | grep -i blonde | date; cd ~; unzip; touch; strip; finger; mount; gasp; yes; uptime; umount; sleep
-
What sane mind would design Date library as such, days start from 1,
but months start from 0??
I mean why??4 -
Android stu. make you feel you're not up to date anymore with all the frequent download component.4
-
Project Manager: "You have until x date, but how far off are you from finishing"
Me: "How long is it until x date, there is your answer" -
I just came with a problem trying to get the value of an HTML input of type date and trying to throw it into a Javascript Date object... After about an hour of searching (Google, Stackoverflow) I realized HTML5 date inputs use UTC timezone (defined by W3C) and Javascript uses your local timezone and this difference is messing with my code giving me a JS obvject 1 day before the HTML date...
Why they do this kind of thing?1 -
fuck Jira's 5 days ago date format.
I hate that i fucking have to inspect it every time to get a normal date.7 -
Who here agrees that every language framework should have moment.js oit of the box. Or at least a standardized way of doing it.1
-
Grrrr
I love JS, but I hate browsers.
Universal ES5 way to initialize a date from a input value in "dd.mm.YYYY" format:
var split = input.value.split('.');
var from = {};
from.day = parseInt(split[0]);
from.month = parseInt(split[1])-1;
from.year = parseInt(split[2]);
var myDate = new Date(from.year, from.month, from.day);
// if a timestamp format is needed:
var myDateTimestamp = +new Date(from.year, from.month, from.day);
No, I won't use moment.js or other bloat-braries just for fucking dates.1 -
There is one problem common in all programming languages: THE DATE! Why don't we use timestamp for all???1
-
Let me tell you a short story. Back in 2016 I resigned my job and started working in my current company 1.10.2016.
One year later in 2017 I got a loan approved on the same date 1.10.2017.
Going forward to today, I resigned my current job moving on and the date when I'm starting the new job is also 1.10. and to make more interesting the load is ending on the same date. I was already thinking about that date and the coincidence and remembered that my wife's birthday is on the SAME date, now I'm afraid and have a feeling that something else will happen hahah
What do you think am I just overthinking or? :D5 -
Seriously Pope Gregory you couldn't make a more consistent calendar? We have extra days why does February have 28 still. Making my calendars program repeat events infinitely more complicated. (Do not get me started on date format inconsistencies). Thats it I'm staying single getting too afraid of the word 'date'.2
-
When coworkers/management can´t keep the password management up to date. EVEN WHEN REPEATEDLY BEING TOLD SO.
-
The age-old question between `DD/MM/YYYY` or `MM/DD/YYYY`.
After some shower thoughts, my new preference is `YYYY/MM/DD` for Americans and Lithuanians (only 2 that I know) it just looks like the year has been placed first, otherwise, they read it as normal. To everyone else, the date is reversed and therefore will be read in reverse leading to the same answer.
In addition, `YYYY/MM/DD/some-dated-file` as a file path works exceptionally well for storing files as it uses the least amount of repetition.12 -
Just a quick question someone might be able to help with, I'm looking for an android tv box that is relatively up to date and going to be kept up to date for development.
Haven't been able to find anything on Google other than the NVIDIA shield or Xiaomi Mi box...5 -
Here's one for the data scientists and ML Engineers.
Someone set a literal date feature (not month, not season, but date) as a categorical feature... as a string type 🥺
I don't trust this model will perform for long2 -
Here's something that should be a standard rule for writing APIs:
When you offer a date filter for your API, the date format passed in should be a UNIX timestamp and not a literal date. For example,
Incorrect API URL format: '?start_date=2024-03-01&end_date=2024-04-01'
Correct API URL format: '?start_date=1709251200&end_date=1711929600'6 -
Was going to have some fun refactoring js code on the weekend, gf dragged me to a jazz festival instead </3
I enjoyed it, though -
I am currently creating a module where I have to put data in xls sheet from a given data, which contains date column,.
I have generated the sheet and the respective date column also has the format of Date which is default of Microsoft Excel.
But the big question noew arises that I am not able to sort the data according to the date column, the sorting is not working correctly.
If anyone has ever worked on this please tell!!3 -
The one day a year when the American date format is better: 6/9
Europe date format is pretty good on 9/6 though.
🍿🍿🍿3 -
An Italian provider in his webservice documentation defines a date (birthDate) as string. Why ?
I discovered the format provided is d-m-Y, my database store it as Y-m-d and my users prefer d/m/Y (as many Italians).7 -
Holy f-ing hell!
Why do the small things have such fucked up corner cases?
This is very likely a giant bug with Qt, but how does this even happen?
I am using Qt with QML and sending data to a database on the backend. I call functions in QML from a Date JS object (property actually, but it calls functions) to set the date as a QDate. This is stored in the database as yyyy/MM/dd. This is fine. When I read the date out I convert it back from string to QDate and send this object to QML. Which then converts this to a Date object in JS in QML.
But at the point where it converts from a QDate to a Date object it loses an entire day. Seriously? You didn't gain a day going from Date -> QDate, but you lose a day going from QDate -> Date?
How long has QML and Qt been around? At least 5 to 10 years. How has this bug lasted this long? I don't want to do a bug report. I will, but I don't want to .6 -
!dev
Assuming your office is not against workplace dating, how would you feel/react if a colleague asks you to a date on Slack?
Scenario 1: you guys work in the same team.
Scenario 2: you guys work in totally different teams.12 -
The following is a genuine error from the runtime when you give apple a "nil" date:
2012-09-19 22:40:13.972 APPNAME [4923:907] * -[__NSCFCalendar components:fromDate:]: date cannot be nil
I mean really, what do you think that operation is supposed to mean with a nil date?
An exception has been avoided for now. -
Ah, the elusive 31st of June - the clients favourite date. Also the DateTime parsers least favourite date.
-
Programmer on a date 🤣🤣joke/meme memes programmer date programming languages coding meme programming techindustan programming comic funny2
-
If the clock is not complicated enough, with DST and timezones.... holidays and red days is even more complicated..... (a perl sub which returns all red days for sweden. It does not return any holidays thats always saturday or sunday)
Requires Date::Calc and Date::Easter
What a mess dates and times become..,
sub GetHoliDayList() {
$yeartocheck = $_[0];
$holiday{'1-1'} = '1';
$holiday{'1-6'} = '1';
$holiday{'5-1'} = '1';
$holiday{'6-6'} = '1';
$holiday{'6-24'} = '1';
$holiday{'12-24'} = '1';
$holiday{'12-25'} = '1';
$holiday{'12-26'} = '1';
$holiday{'12-31'} = '1';
($eastermonth, $easterday) = gregorian_easter( $yeartocheck );
$hea = int($eastermonth)."-".int(int($easterday) - 2);
$heb = int($eastermonth)."-".int(int($easterday) + 1);
$holiday{$hea} = '1';
$holiday{$heb} = '1';
($year,$christskytravellermonth,$christskytravellerday) = Add_Delta_YMD($yeartocheck,$eastermonth,$easterday, 0,0,39);
$chstv = int($christskytravellermonth)."-".int($christskytravellerday);
$holiday{$chstv} = '1';
if (Day_Of_Week($yeartocheck,6,19) == 5) {
$holiday{'6-19'} = '1';
}
if (Day_Of_Week($yeartocheck,6,20) == 5) {
$holiday{'6-20'} = '1';
}
if (Day_Of_Week($yeartocheck,6,21) == 5) {
$holiday{'6-21'} = '1';
}
if (Day_Of_Week($yeartocheck,6,22) == 5) {
$holiday{'6-22'} = '1';
}
if (Day_Of_Week($yeartocheck,6,23) == 5) {
$holiday{'6-23'} = '1';
}
if (Day_Of_Week($yeartocheck,6,24) == 5) {
$holiday{'6-24'} = '1';
}
if (Day_Of_Week($yeartocheck,6,25) == 5) {
$holiday{'6-25'} = '1';
}
return %holiday;
} -
Lost about 4 days debugging bug about date conversion between frontend to backend as an api request.
This shit is mad fucking annoying
The date format was always wrong.
So i gotta ask. Is it better to always have date fields as a Long which contains just a huge number that represents a timestamp, and that way whenever i want to see what date it is i would have to convert it every time on both frontend and backend from timestamp into LocalDateTime, or is it better to keep it as Date/LocalDateTime and not string/long, and that way risk fucking up the date format?
How is it done in real world projects? Whats the right way to do it and why?3 -
did a google search for typesceipt date formating as just 'ts date'...
the results were less than helpful.1 -
They say if you’re dating a programmer, raise your glass. If you don’t, raise your standards. I’m raising my eyebrow. Date a youtuber werewolf. Date Lykansubscribe.1
-
How long I've gone without a compensation adjustment at my current job (from start date)
It is 606 days from the start date to the end date, but not including the end date.
Or 1 year, 7 months, 28 days excluding the end date.
Or 19 months, 28 days excluding the end date.2 -
Recently faced a situation in project development. I am working with a mat- datepicker component and I have to read the time for each time date selection . In my case a particular date selection . For eg: a user wants to save a text at a particular date say 2nd June. Again he/she goes and save another item in the same date. Now the user wants to see the latest selected item at the top. Can we handle something like this in angular ?
-
$dow = date('l');
if($dow == 'Monday') {
$project = $_GET['project'];
while($dow !== 'Friday') {
exec('buildProject');
$dow = date('l');
}
exec('submitProject');
execInBackground('celebrate');
while(!isset($project_approval) {
exec('wait');
}
if($_GET@['project_approval'] == 'approved') {
exec('celebrateGoHome');
}
elseif($_GET['project_approval'] == 'nevermind') {
exec('burnItAllDown');
}
else{
exec('hangHeadGoHome');
}
} -
!Rant
I've got somewhat of a problem: a client claims that the date format at a website is wrong. I am using Carbon for Date output which extends PHP's DateTime which uses the Linux locales. Can someone here confirm that they have seen a similar but that the date is wrong in Romanian, slowenian and Czech? (The format would be somewhat like wednesday, 17. January 2017).