• Catalog

    Catalog

    See All
    • Languages
    • Courses

    Languages

    See All
    • C++
    • C#
    • HTML
    • Java
    • JavaScript
    • Python
    • C
    • CSS

    Level

    See All
    • Beginner
    • Intermediate
    • Advanced

    Courses

    See All
    • Introduction to Python
    • Introduction to C
    • Introduction to C#
    • Introduction to SQL
    • Introduction to HTML
    • Introduction to CSS
    • Introduction to Java
    • Introduction to JavaScript
    • Introduction to C++
    • Tech for Everyone

    Courses

    See All
    • C# Intermediate
    • Python Intermediate
    • Java Intermediate
    • JavaScript Intermediate
    • C++ Intermediate
    • C Intermediate
    • SQL Intermediate
    • Game Development with JS

    Courses

    See All
    • React + Redux
    • Angular + NestJS
    • Python Data Structures
  • Online Compiler
    • HTML
    • CSS
    • Javascript
    • C++
    • C
    • PHP
    • Java
    • Python
    • Swift
    • C#
    • Ruby
    • Node.JS
    • Kotlin
    • jQuery
    • Go
    • R
    • TypeScript
  • Discuss
  • Blog
  • Get Pro
Menu
+ 7
If you don't need argument validation, it's a one-liner function: def dateConv(date): return "/".join(a[2:].split('-')[::-1]) a = "2016-1-25" print(dateConv(a)) >>> 25/1/16 https://code.sololearn.com/cqny043e5OjS/?ref=app Also, check out my Date Converter I to get the idea: https://code.sololearn.com/crgVNxIU9Cdy/?ref=app
30th Mar 2017, 5:56 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Could anyone please tell me how to fix the error in my code???The problem is "Duct Tape" in code coach.
0 Votes
Please help me fix this logical error
4 Votes
Is it possible to use the nested's object property value in js?
1 Votes
Could anyone tell me why test case 4 Is showing error in code coach problem named "Land Ho!"???I am not a pro user!
0 Votes
"!==" what does it mean?
1 Votes
I am getting a fault in solving the code coach.
0 Votes
is there an easier way to write this code?
1 Votes
Do Sololearn moderators possess a programming-oriented skill set?
2 Votes
Please help me why it doesn't work I think I done it but it doesn't work!!
0 Votes
What was wrong? I didn't get the output
1 Votes

Languages

  • C++
  • C#
  • HTML
  • Java
  • JavaScript
  • Python
  • C
  • CSS

Introduction Courses

  • Introduction to Python
  • Introduction to C
  • Introduction to C#
  • Introduction to SQL
  • Introduction to HTML
  • Introduction to CSS
  • Introduction to Java
  • Introduction to JavaScript
  • Introduction to C++
  • Tech for Everyone
  • R
  • Kotlin
  • Go
  • PHP
  • Ruby
  • Swift 4

Intermediate Courses

  • C# Intermediate
  • Python Intermediate
  • Java Intermediate
  • JavaScript Intermediate
  • C++ Intermediate
  • C Intermediate
  • SQL Intermediate
  • Game Development with JS

Advanced Courses

  • React + Redux
  • Angular + NestJS
  • Python Data Structures

Community

  • Discuss
  • Code Bits
  • Blog
Follow us on Linkedin
Check out our facebook
See what we tweet about
Join our instagram
Watch our Youtube
HomeTop LearnersProFAQContactBug Bounty ProgramCareersTerms of UsePrivacy PolicySololearn mobile
Made with
by  Sololearn | ©2023