Today I started using spreadsheet gem to make my excel files, but one of my columns is a date, and I want to format this column as a date. It looks like it's out there somewhere, with the date method in Spreadsheet :: Excel :: Row, but I can't get it to work.
Any hero out there?
In fact, it turned out, with Spreadsheet:Formatyou have the option:number_format
Spreadsheet:Format
:number_format
So now I use this code
date = Spreadsheet::Format.new :number_format => 'MM/DD/YYYY' ... sheet.row(i).set_format(0, date) ... sheet[i, 0] = Date.today
I think there is no fotmat date picker. you are crazy.
Source: https://habr.com/ru/post/1753808/More articles:Smart XLS examples? - c #Help with debugging unexpected takeWhile behavior with large numbers in Haskell - debuggingIf I want to write an iPad app, do I need to buy an iPad? - objective-cКак определить счетчики уравнений и подсекций в LaTeX? - latexHow to define two counters in LaTeX? - latexWill the JVM extend to handle generics? - javaHTTP response 411 Required length, Http Client 4.0.1 Android - androidПроблема стиля программирования Haskell CPS - designНеправильно ли было установить WITH PERMISSION_SET = UNSAFE в SQL 2005? - c#Creating Maven Multi-Module Projects in Eclipse - eclipseAll Articles