Import to Invoice from Zoho Sheet - Date incompatibility

Import to Invoice from Zoho Sheet - Date incompatibility

Despite claims to the contrary, it does not appear possible to import invoice data from ANY spreadsheet (via csv) to Zoho invoice owing to the incompatibility of date formats.  Spreadsheets insist on exporting date format as "mm/dd/yyyy" (Excel) whereas zoho invoice insists on the mysql format yyyy-mm-dd.

This drove me nuts until I worked out the logic.

Solution?

Use sed, the Unix stream editor.  If you have a Mac, you already have it.  For Windows?  Can be obtained by installing the Cygwin project .. http://www.cygwin.com/

This is where I started to get my solution working ..
http://tinobox.com/wordpress/coding/fun-with-sed/


Export your data from Spreadsheet, process it with sed, import into invoice.

hth

Rgds.

ps ...
a rudimentary start to a bash script to work with the default data given in zoho invoice. As far as I can see, the logic should work with any data as it looks for dates.  I think it will work till the end of 2099.

It trims the quotes in the field, changes the / separator to - and moves yyyy from the end to the front of the field.  Corrections welcome.

#--------------------------------------------------------------------------------------------------------------------------------
#!/usr/bin/bash

sed -e 's:\("\)\([0-9]\+\)/\([0-9]\+\)/\(20[0-9][0-9]\)\("\):\4-\2-\3:g' $1 > $2


Useage:    thisscipt.sh inputfile outputfile






























      • Sticky Posts

      • Zoho Invoice Will Soon Discontinue Support for Older Browser Versions

        Hello users, Starting from May 15, 2024, Zoho Invoice will no longer support the following browser versions: Browsers Version Restrictions Firefox Browser Versions older than 100 Google Chrome Versions older than 100 Microsoft Edge Versions older than
      • Bulk Printing now available in Zoho Invoice

        Hello, We are happy to announce the much requested and much awaited feature in Zoho Invoice - Bulk Printing of Estimates and Invoices. All you need to do is, select the invoices you wish to print and then click the 'Print' button. All the invoices will be downloaded as a single PDF file which can be printed as you wish. You can print upto 25 invoices at a single go. Go ahead and give it a shot and let us know how it worked for you. Regards, Reshma   
      • Introducing the iPhone App for Zoho Invoice

        Now you can invoice on the go from your iPhone through the Zoho Invoice iPhone app. Our iPhone app is available at the apps store for download. The app is special in more ways than one: An impeccable UI takes your invoicing experience to a whole new level That's a first native app we've come up with It's available for FREE!!!!! Yeah, absolutely Free. No brainer there, we just wanted to make our users to enjoy the app no strings attachedHere some snapshots of the app: For the real experience, head