Strange behaviour for Dates in Google Sheets - date

So I have a sheet with a column populated with dates (exported using a Google API, all at the same time) however when I use an ISDATE to check (after I noticed some irregularities in my data) a bunch of them show up FALSE, but most of them show up TRUE.
Below is a small snippet of the data, the only difference is that the ones returning false appear to be left-aligned for some reason while the ones that return true are right-aligned (unfortunately, not able to replicate this in the table below).
Date Value
ISDATE Check
1 Sept 2019
FALSE
1 Sept 2019
FALSE
1 Sept 2019
FALSE
1 Sept 2019
FALSE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
31 Aug 2019
TRUE
I'm baffled, but what I need is a way to convert them all to day/month/year, I was using =TO_DATE() which worked for all the values where the ISDATE check returned TRUE but just repeated the date in the same format where it was FALSE (so 1 Sept 2019, after the TO_DATE returned 1 Sept 2019 rather than 01/09/2019)
Has anyone seen this behaviour before? Or have any idea how to get around it?
Here is the data I am working with

The abreviation of september is sep, not sept. So replace sept by sep each time if necessary.

Related

iMacros - Change date Format

I have an iMacros script working with data extracted from csv file.
I am trying to change a format date different as is extracted from my csv file.
I need
08-24-2022 to be replaced with Aug 24, 2022
basically d-mmm-yy with mmm d, yyyy
I tried something like this,, don't know how to make it work, Thank you for support!
SET date "08-24-2022"
SET dateFormatted EVAL("\"{{date}}\".replace(/(\\d{4})-(\\d\\d)-(\\d\\d)/, \"$2 $3, $1\");")
PROMPT {{dateFormatted}}
I am using:
Browser: Google Chrome Version 105.0.5195.102 (Official Build) (64-bit)
iMacros Personal Edition License - Addon for Chrome -Version 10.1.1
Windows 10 (64-bit)
One "easy" Implementation: Declare the Months yourself in a Var/Array and use the Month Number as Index (to re-split() the Array into the 12 Months) to convert it to the mmm Format, stg like:
VERSION BUILD=8820413 RECORDER=FX
TAB T=1
SET date "08-24-2022"
'SET dateFormatted EVAL("\"{{date}}\".replace(/(\\d{4})-(\\d\\d)-(\\d\\d)/, \"$2 $3, $1\");")
SET Months _Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec_
SET dateFormatted EVAL("var d='{{date}}', m='{{Months}}', x,y,z; x=d.split('-'); y=m.split('_')[x[0]*1]; z=y+' '+x[1]+', '+x[2]; z;")
PROMPT _{{dateFormatted}}_
For Date="08-24-2022", this will output Aug 24, 2022.
For Date="08-04-2022", this will output Aug 04, 2022.
(=> Use x[1]*1 instead of x[1] in z if you would prefer Aug 4, 2022 for 1-Digit Dates from 01-09 to remove the Leading 0...)
(Written and tested in iMacros for FF v8.8.2, PM v26.3.3, Win10_PRO_21H2.)

Powershell Enums in different languages - Localized Enums?

I need to write some date functions in Powershell for a current project, and a couple of those require the name of a day as param. Since I am writing this for an English speaking site, I will allow as valid inputs:
Mon, Tue, Wed, Thu, Fri, Sat, Sun
Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
Mo, Tu, We, Th, Fr, Sa, Su
I want to put some of these into my toolkit, so I would like to make the script work in any language. I know how to use Import-LocalizedData for all my help texts and prompts, those are pretty easy.
Is there a way to have localized enums? Or is the better way to create enums in the most common languages and switch them based on the OS's current locale at runtime?

Can not find a date pattern

Can't find a pattern for this date. Could anyone help me?
I know it's ISO 8601 standart.But everything I have found was without : between 03 and 00.
2018-01-18T08:40:00+03:00
How do I can parse this to Thu Jan 18 00:00:00 GMT+03:00 2018 to this 2018-01-18T08:40:00+03:00?
It looks like this W3C Datetime format is typically used for < lastmod > timestamps in XML.
related & more detailed answer here

How to understand these email header fields? ("From" field prefixed with a "greater" sign)

I have a raw email with headers that look like this:
From xxxx#xxxx Fri Apr 25 22:46:08 2003
>From xxxx#mxxxx Wed Feb 19 20:06:07 2003
Envelope-to: yyyy#xxxx
...
Date: Wed, 19 Feb 2003 22:05:59 +0500
From: "Actual Author" <xxxx#xxxx>
I don't know how to interpret the first two lines, and the initial reading of RFC2822 has left me without a clue. They don't look like normal headers and manage to confuse Python 2.7 email parser (fine if I remove the > sign at the start of the second line). I have the same email body in Apple mail's cache, and it seems fine, so the input is clearly correct.
What's that header format? (From <email> <date>\r\n)
Why is the second one prefixed with > (greater sign)?
What you have is a mail in mbox format, where the first "From" line marks the start of the message. The second line (>From) seems to be caused by the escaping strategy of mbox known as From quoting - has this message been double-encoded as mbox?

Date Picker Blue

I'm successfully setting a date-picker with an initial date from a plist, but I see some unwanted blue values in the month, day, and year components, presumably corresponding to current date. So if today is April 18, 2010 and initial date being set is March 19, 2008, it looks like this (bold represents the blue):
January 17 2006
February 18 2007
------------------------------
March 19 2008
------------------------------
April 20 2009
May 21 2010
First question is: How do I get rid of the blue?
And second question: Ideally, how do I get it to look like this?
January 17 2006
February 18 2007
------------------------------
March 19 2008
------------------------------
April 20 2009
May 21 2010
Third question, totally unrelated and not as important: How could I have gotten the above to show in blue rather than bold? I see blue in code snippets all the time.
Matt
Sadly, I do not believe it's possible to suppress the coloring of the current date components in blue. You could always file a feature request for this functionality.
As a last resort, you could implement your own (or Google for "generic date picker" - someone has already done this).
I think the code sample formatter automagically makes things blue that it thinks are keywords, like:
UIDatePicker* myPicker;
I didn't tell it to make that blue, it just is.