Convert 1982 RFC822 to ISO 8601 Date Format using Yahoo Pipes - date

RSS feed
http://www.tides.info/rss.xml?locid=13419
Pipe
http://pipes.yahoo.com/pipes/pipe.info?_id=7639d7857574ee6f8677d59da4dded83
Trying to put daily tide information on a site. The date format that the RSS feed uses is not recognized by pipes. I am wanting to convert the date from RFC822 to ISO 8601 or some other format that is usable. Im wanting to display the day's tides(i.e. Saturday) on Saturday. Presently it is displaying two days ahead of time.
Thanks

Related

Google sheets won't format time date correctly

My Google Sheets is currently set to UK London GMT
I have some data that is needed in UK format and other data that is needed in US format within the same sheet.
I'm using date time as dd-mm-yyyy hh:mm:ss and have been trying to convert this to US yyyy-mm-dd hh:mm:ss
When formatting the UK date time to as text and using this formula
=ARRAYFORMULA(REGEXREPLACE(A2:A, "(\d{4})-(\d+)-(\d+)", "$3/$2/$1"))
It should be converting for me however is stays the same.
I have also tried simply copying and pasting in a new column with the intention of changing format from within formatting settings but when pasting it seems to randomly select different formats in some rows using / instead of - and in other rows returning a number instead of date time.
How can I get this to work correctly?
try:
=TEXT(A2, "e-m-d h:mm:ss")

How do I pull the week of the month from text strings in this Twilio format 2019-08-22 06:12:58 MDT?

I am using the Twilio log file to crunch some data and need to convert the Twilio format for dates into something that Google Sheets can recognize as a date so I can then extract what week of the month the date is referring to. Also would be helpful to get the syntax that converts the Twilio date to a recognizable date for Googlesheets in case there are other things I need to do with the date field.
Currently, this is the format in the log file: "2019-08-22 06:12:58 MDT"
I'm using this =text(index(split(I2," "),,1),"mmmm") to determine the month and am struggling to have this now be able to work with the WEEKNUM function of Googlesheets to get the number of the week the date is from. I've tried =DATE(index(split(I2," "),,1),"mmmm"), =WEEKNUM(index(split(I2," "),,1),"mmmm") but am terrible with the formula syntax and can't fix the date value.
=DATE(index(split(I2," "),,1),"mmmm")
I expect to see a value from 1-5.
The text() part of the formula is turning the date input into text. And so you can't use it to calculate the weeknum().
=weeknum(index(split(I2," "),,1)) will get you closer. But it will give you the week of the year.
You may want to see this for a way to get to week of the month from week in the year.

What date format is this and how do I convert it into a MM-DD-YYYY format and vice versa

I've been handed a whole file of sms messages from a guy's phone, who is trying to do something like whatsapp. These messages were exported from his cell phone, and have the date as 1410440383791. Can anyone figure out what format this date stamp is in, and how I can convert it into a regular MM-DD-YYYY format and also vice versa?
Is is possible that it is unix time (number of milliseconds since 1/1/1970)? If so, that date converts to 9/11/2014, 8:59:43 AM GMT
Converter Used

PHPExcel expects date format d/m/y, but m/d/y entered. How to set PHPExcel Reader object to use custom date format for conversions

I need to read an excel spreadsheet with date format m/d/y into database. However, PHPExcel is outputting the wrong date because it thinks the date format is d/m/y.
How can I tell PHPExcel reader object to use the format m/d/y?
If the date is simply a string in the excel file, then you can use the standard PHP functions for string to date conversion (either strtotime() or DateTime objects). If the date is stored as an Excel timestamp, then you can use the PHPExcel built-in functions (PHPExcel_Shared_Date::ExcelToPHP() or PHPExcel_Shared_Date::ExcelToPHPObject()) to convert from the Excel timestamp value to a PHP/Unix timestamp or DateTime object, and then use the standard PHP date functions or DateTime methods to format it however you wish.
For clarity if other people encounter this problem:
Spreadsheet contains date 02/04/2014
You/Client/Boss entered date to be: m/d/y or February 4th, 2014
PHPExcel sees it as: d/m/y or April 2nd, 2014
The solution is to avoid the situation altogether by using the correct date formatting when the spreadsheet is created or use general formatting instead.
Q) What do I do if my client provided the spreadsheet to me?
A) Search for an entire day for a solution until you come to the same conclusion as I did or you can save yourself time and ask the client to send you another spreadsheet with the correct formatting.

Date and timezone using j2me

I have a date string as input from an rss like:
Wed, 23 Dec 2009 13:30:14 GMT
I want to fetch only the time-part, but it should be correct according to the my timezone. Ie, in Sweden the output should be:
14:30:14
What is the best way? I want it to work with other RSS date formats as well if possible. Im using regexp right now but that is not very general.
Im having a hard time finding any library or support for dates and timezones in j2me?
/Br Johannes
In normal Java, I'd use a SimpleDateFormat object (that you create to match the pattern of the date you're getting in the RSS) to parse the String value and give you a Date object. Then, using a Calendar (which would be localized to your time zone), you'd be able to get the hour, minute, and second information.
I don't know j2me, but a google search suggests that these classes are available in j2me.