Skip to content

Problem formatting dates #520

Closed
Closed

Description

@aschoijett

Hi,
I wanted to display the system time as something like this: 2022-09-18 18:40:00

I tried using

SELECT sysdate('yyyy-MM-dd HH:mm:ss')

which seems consistent with the "rules" page sent to from a link in the Arcade's documentation.

The problem is, however, that no matter what I put as format, it it is not blank, the server always returns "2022-09-18", ignoring any settings for time and any settings for date formats.

Am I doing something wrong?

Many thanks,

Alex

Activity

  1. self-assigned this
    on Sep 19, 2022
  2. lvca commented on Sep 19, 2022

    @lvca
    Member

    There was an issue with sysdate() function that has been fixed in the last snapshot. The 2 parameters were swapped. We got this code from OrientDB and I just double checked and it has been fixed there, so I ported the fix to ArcadeDB.

  3. added this to the 22.9.1 milestone on Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions