Conversion of YYYY-MM format to ShortMonth-YYYY format in Data prep - google-cloud-dataprep

I've my incoming data from Client in the format of 2019-09 format whereas we wanted to convert this into Sep 2019 format using Data Prep GUI.
I didn't find solution with Data Prep GUI, please help me with it.
I've tried Data Format options, but no luck
Example Data Expected Data
2018-06 Jun 2018
2019-08 Aug 2019
No errors

This is what you will have to do. See image for wrangle recipe.

Related

Date format issue while uploading and saving the excel sheet into db using coldfusion cfspreadsheet

I uploaded and parsed through an excel sheet using cfspreadsheet and inserted all the values into database and the problem is that [my excel sheet has a date range from 1/2/2016 to 29/02/2016,from 1/2/16 to 12/2/2016 it is right aligned in excelsheet and remaining is left aligned...]. The value is being inserted into the db but I cannot able to fetch the values from 1-12 using where condition in db. I tried manually changing the date format in my excel sheet..what happened is
..02 January 2016
02 February 2016
.
.
02 December 2016
13/02/2016
14/02/2016
.
.
up to 02/12/2016[mm/dd/yy] it is displaying dd as month notation and from 13/02/2016[dd/mm/yyy] it is displaying properly, I tried with all formatting options, and I need to implement it in code. I think while downloading the data itself the date is not getting formatted properly, I tried with different excel sheet but of no use...and I tried converting these dates into specific format using coldfusion code and but it doesn't works for me..
<cfset sheet = spreadSheetRead("D:\file123\final1231.xls")>
<cfset SpreadSheetFormatColumn(sheet,{dataFormat="yyyy-mm-dd"},3)>
<cfset SpreadSheetWrite(sheet,"D:\file123\final1232",true)>
can any one help me in this?
What looks to me is that locale is set to 'English (United States)' in your excel and that is why for first 12 rows your excel is treating values as valid date but starting 13th row the data is invalid and hence excel is treating it as string (hence left aligned). Try manually changing excel locale to 'English (India)' or similar and you will see data aligned properly.
Also Cold Fusion internal date-time format is American (mm/dd/yyyy) and by default will interpret date and time into American format. I think while inserting data you can create date with something like below to make sure what data gets inserted:
#createDate(listLast(dt,"/"),listFirst(listRest(dt,"/"),"/"),listFirst(dt,"/"))#
Here dt is the data column that you want to insert. You may need to put some checks, based on the data, to avoid any run time errors.

Getpivot data Excel 2016 Date not recognised

Hi I've got a Pivot table for various products in a company i work for. We have been moved to 2016 Excel and my New Pivot table is displaying the date after I formatted it in Access.
But, My Getpivot data does not recognise the date anymore. Any suggestions?
3 excel files also running in Excel 2016 are okay because they have not been changed but this new workbook now has stopped working.
Example here:
=IFERROR(GETPIVOTDATA("QUANTITY",'Qry from PST db'!$A$2,"Day/Night",$T$14,"SUPPLIER",S15,"ShiftDatet","17/11/2015"),"N/A")
The date of 17/11/2015 should point to a cell in the workbook but then the query now fails but is okay in other workbooks.
Same formula in different book that works:
=IFERROR(GETPIVOTDATA("QUANTITY",'Qry from PST db'!$A$2,"Day/Night",$T$14,"SUPPLIER",S15,"ShiftDatet",$E$13),"n/a")

VB Script for date extraction and formatting

I work on OCR. We extract text from invoices automatically. When the contents of the invoice are extracted they are stored in a text file, and then we write scripts to extract the data from the text file according to our requirements.
One requirement that has got me stuck is, I need to extract the date from a text file which is not written in any particular format. Its written as 12 08 2014 in a line. I need to extract this and print it out in the dd/mm/yyyy format.
Also, the dates can be written in any format, for example 2nd December 2013, 12-12-2013, 12 Aug 2013 and so on. I need to read the date and extract it in the form of dd/mm/yyyy.
A little heads up for the problem.
There is no fixed location for the date. There are about 14000 invoices, most have a separate location of the date and separate format. I get the images and the scanned text file of the invoices, and i have to locate the date and try to format it.
The date is not after any fixed keyword that i could use. Like i mentioned in the first point, it can be after the word invoice number, or cost or any other work. SO the idea of searching it using keywords does not work as well.
This is the most stupid one, suppose I get the date 1/2/2011, how do I know whats the day and whats the month? The client has just entered a date, i have no way of finding out whats the day and the month. Is it even possible to find this out?
ORDERED SHIPPED
01239751 28 08 14 03 09 14 E31192-00 1
CUST.NO. ItN1 R 0 R NO SALE MM
NOM CI WATT VOTRF NO nr CAMMANOF in-W.01M
ADDRESS HERE
Te1:(123)123-1234/ Fax:(123)795-1234
Facture / Invoice
OUTPS:R-103958989 CONE:MONS Taws> NET 60 DAYS
SOLD TO / VENDU A SHIPPED TO / EXPEDIE A
You've already asked this.
You don't know and there is no way to know. We normally base it on the locale of the computer how dates are read. Yanks do m/d/y while the rest of the world do d/m/y. In the US windows functions assume the first and in the rest of the world the second.
As to years. Two digits are interpreted according to control panel settings. 29 and below is 2000 to 2029. 30 and above is 1930 - 1999.
Computers can not read the minds of people who write dates.

CSV date Format issue

When I am using date in a .csv file it creats a problem as like I have used 01/01/2011 it takes 1st jan 2011,that's right but when I use 01/10/2011 it takes it as 10th jan 2011. I mean to say it always takes in mm-dd-yyyy format. I have some gb of files are there to be converted into csv. When I am converting these files dates in the files are in dd-mm-yyyy format. And after conversion the value changes completely.Hence How to resolve this issue? Hope I made my requirement clear.
Try the following:
DateTime.ParseExact("01/10/2011","dd/mm/yyyy",CultureInfo.CurrentCulture);
This specifies the format of the date in the string and should convert your dates correctly.

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.