Accounting Ideas

choose different date format, ex : JJ/MM/AAAA

  • Guest
  • Mar 10 2020
  • One For The Future
  • Attach files
  • Guest commented
    9 Sep, 2021 01:38pm

    It is very hard to do to invert the dates for every one, especially going from 2020-01-06 (yyyy-mm-dd) to 01-06-2020 (mm-dd-yyyy) you can see how it gets confusing and is prone to error when transcribing or migrating data from another system which supports custom date formats (such as Quickbooks Online, or even excel which uses the platform's configured date format).

    You need to use the 'toLocalDateString' javascript function for the browser to pick up the local of the computer. Very simple.
    https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tolocalestring

    Note that the US is one of the only countries that uses mm-dd-yyy

    In Canada, we use both yyyy-mm-dd (french/ISO format, also the government format) and dd-mm-yyyy (english canada version, like many other nations). Though, I see you format the currency correctly ($4 instead of the US way of doing it 4$)