8 kyu
Remove the time
7,445 of 18,541radiocontrolled
Description:
Task Description
You're re-designing a blog, and the blog's posts have the Weekday Month Day, time
format for showing the date and time when a post was made, e.g., Friday May 2, 7pm
.
You're running out of screen real estate, and on some pages you want to display a shorter format, Weekday Month Day
that omits the time.
Write a function that takes the website date/time in its original string format and returns the shortened format.
Input
Input will always be a string, e.g., "Friday May 2, 7pm"
.
Output
Output will be the shortened string, e.g., "Friday May 2"
.
Date Time
Parsing
Fundamentals
Similar Kata:
Stats:
Created | Feb 2, 2016 |
Published | Feb 2, 2016 |
Warriors Trained | 24015 |
Total Skips | 803 |
Total Code Submissions | 34660 |
Total Times Completed | 18541 |
JavaScript Completions | 8297 |
CoffeeScript Completions | 32 |
Ruby Completions | 828 |
Python Completions | 7445 |
Elixir Completions | 259 |
PHP Completions | 1218 |
Java Completions | 915 |
Scala Completions | 23 |
Total Stars | 133 |
% of votes with a positive feedback rating | 94% of 2129 |
Total "Very Satisfied" Votes | 1881 |
Total "Somewhat Satisfied" Votes | 226 |
Total "Not Satisfied" Votes | 22 |