Coder Social home page Coder Social logo

Comments (6)

pphod avatar pphod commented on May 18, 2024 1

What I meant was the copy and paste with jExcel. You can paste something to match your format and should work fine. The initialization must be with the YYYY-MM-DD or YYYY-MM-DD HH:MM:SS

from jsuites.

pphod avatar pphod commented on May 18, 2024 1

I will keep that as a reference for potential improvements.

from jsuites.

wescrockett avatar wescrockett commented on May 18, 2024

Upon more investigation and testing, It had to do with the format I was calling the old dates into the field with.

My SQL was fetching the dates in the same format I was specifying in the JS call:
MM/dd/yyyy HH:mm

When I reformatted the SQL call to be like the examples (yyyy-MM-dd HH:mm), it started to call the year appropriately.

I suppose I would convert this from an issue to a request, then, that we could specify the datetime format

from jsuites.

pphod avatar pphod commented on May 18, 2024

It should work with the format defined or the full format. Just make sure the format string is all capital letters.

from jsuites.

wescrockett avatar wescrockett commented on May 18, 2024

The following shows the issue I mean:
`

<script src="https://bossanova.uk/jexcel/v3/jexcel.js"></script> <script src="https://bossanova.uk/jsuites/v2/jsuites.js"></script>
<script> var data = [ ['LUX London', 'London','03/13/2020'], ]; jexcel(document.getElementById('spreadsheet'), { data:data, columns: [ { type:'text', title:'Museum', width:'300', }, { type:'dropdown', title:'Region', source:['South East','South West','North','London'], width:'200', }, { type:'calendar', title:'Last visit', options: { format:'MM/DD/YYYY', time:1}, width:'100', }, ] }); </script> `

The default date is 03/13/2020 in MM/DD/YYYY format. When you 2x click the cell to bring up the date picker, it goes to 02/0003 (in MM/YYYY format). This shows that, when inserting a data value, it must always be in YYYY-DD-MM in the data = [] array.
image

from jsuites.

wescrockett avatar wescrockett commented on May 18, 2024

Thank you. Much appreciated. In the meantime, I will ensure I utilize it as designed.

from jsuites.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.