{ "data": { "question": { "questionId": "2004", "questionFrontendId": "1853", "boundTopicId": null, "title": "Convert Date Format", "titleSlug": "convert-date-format", "content": null, "translatedTitle": null, "translatedContent": null, "isPaidOnly": true, "difficulty": "Easy", "likes": 58, "dislikes": 42, "isLiked": null, "similarQuestions": "[]", "exampleTestcases": "{\"headers\":{\"Days\":[\"day\"]},\"rows\":{\"Days\":[[\"2022-04-12\"],[\"2021-08-09\"],[\"2020-06-26\"]]}}", "categoryTitle": "Database", "contributors": [], "topicTags": [ { "name": "Database", "slug": "database", "translatedName": null, "__typename": "TopicTagNode" } ], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"11.8K\", \"totalSubmission\": \"13.7K\", \"totalAcceptedRaw\": 11783, \"totalSubmissionRaw\": 13713, \"acRate\": \"85.9%\"}", "hints": [], "solution": null, "status": null, "sampleTestCase": "{\"headers\":{\"Days\":[\"day\"]},\"rows\":{\"Days\":[[\"2022-04-12\"],[\"2021-08-09\"],[\"2020-06-26\"]]}}", "metaData": "{\"mysql\": [\"Create table If Not Exists Days (day date)\"], \"mssql\": [\"Create table Days (day date)\"], \"oraclesql\": [\"Create table Days (day date)\", \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"], \"database\": true, \"name\": \"convert_date_format\", \"pythondata\": [\"Days = pd.DataFrame([], columns=['day']).astype({'day':'datetime64[ns]'})\"], \"postgresql\": [\"Create table If Not Exists Days (day date)\"], \"database_schema\": {\"Days\": {\"day\": \"DATE\"}}}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [ "Create table If Not Exists Days (day date)", "Truncate table Days", "insert into Days (day) values ('2022-04-12')", "insert into Days (day) values ('2021-08-09')", "insert into Days (day) values ('2020-06-26')" ], "enableRunCode": true, "enableTestMode": false, "enableDebugger": false, "envInfo": "{\"mysql\": [\"MySQL\", \"

MySQL 8.0.

\"], \"mssql\": [\"MS SQL Server\", \"

mssql server 2019.

\"], \"oraclesql\": [\"Oracle\", \"

Oracle Sql 11.2.

\"], \"pythondata\": [\"Pandas\", \"

Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0

\"], \"postgresql\": [\"PostgreSQL\", \"

PostgreSQL 16

\"]}", "libraryUrl": null, "adminUrl": null, "challengeQuestion": null, "__typename": "QuestionNode" } } }