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

Stats:

CreatedFeb 2, 2016
PublishedFeb 2, 2016
Warriors Trained24015
Total Skips803
Total Code Submissions34660
Total Times Completed18541
JavaScript Completions8297
CoffeeScript Completions32
Ruby Completions828
Python Completions7445
Elixir Completions259
PHP Completions1218
Java Completions915
Scala Completions23
Total Stars133
% of votes with a positive feedback rating94% of 2129
Total "Very Satisfied" Votes1881
Total "Somewhat Satisfied" Votes226
Total "Not Satisfied" Votes22
Ad
Contributors
  • radiocontrolled Avatar
  • ArcticLight Avatar
  • cris Avatar
  • GiacomoSorbi Avatar
  • asedov Avatar
  • FArekkusu Avatar
  • QKiryu Avatar
  • Just4FunCoder Avatar
  • yLaWy Avatar
  • KayleighWasTaken Avatar
Ad