koala-13b· UC Berkeley
Arena Human Preference 55K
Write js function to check if a string is in yyyy-mm-dd format. If yes, convert it into…
- User
Write js function to check if a string is in yyyy-mm-dd format. If yes, convert it into a human readable format based on the user's locale
- Assistant
To write a JavaScript function that checks if a string is in yyyy-mm-dd format and if so, converts it into a human readable format based on the user's locale, you can use the following code:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.