-
Notifications
You must be signed in to change notification settings - Fork 0
/
task.html
13 lines (13 loc) · 1.26 KB
/
task.html
1
2
3
4
5
6
7
8
9
10
11
12
13
<h2>The standard</h2>
<html>
<head></head>
<body>
<p>Different date formats may cause a lot of confusion, so in 1988 ISO officially introduced the standard numeric date format: YYYY-MM-DD. Let's create a function that formats dates in this way!</p>
<p>Below you can see a template for the function <code class="java">convert_to_standard</code>. It takes a <code class="java">datetime</code> object and returns the string in the standard format. You can discard hours and minutes, they are not of interest right now. Your task is to finish that function. Pay attention to the delimiters!</p>
<p>Note also that you do NOT need to call this function or process the input. The examples are given for clarity!</p>
</body>
</html><br><b>Sample Input:</b><br><pre><code class="language-no-highlight">1611-12-24 16:30<br></code></pre><br><b>Sample Output:</b><br><pre><code class="language-no-highlight">1611-12-24</code></pre><br><br><br><font color="gray">Memory limit: 256 MB</font><br><font color="gray">Time limit: 15 seconds</font><br><br>
<b>Caution</b><br><br>
You may see errors in your code or execution results due to missing context. Don’t worry about it, just write the solution and press Check.
<br><br>
<a href="https://hyperskill.org/learn/step/9814">Show topic summary</a>