{"size": 321, "ext": "js", "max_stars_repo_path": "src/utils/date.js", "max_stars_repo_name": "hoqua/notebook-service-b2b", "max_stars_repo_stars_event_min_datetime": "2022-02-17T14:55:44.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-17T14:55:44.000Z", "max_issues_repo_path": "src/utils/date.js", "max_issues_repo_name": "hoqua/notebook-service-b2b", "max_issues_repo_issues_event_min_datetime": "2021-08-31T19:10:59.000Z", "max_issues_repo_issues_event_max_datetime": "2021-08-31T19:10:59.000Z", "max_forks_repo_path": "src/utils/date.js", "max_forks_repo_name": "hoqua/notebook-service-b2b", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 32.1, "max_line_length": 54, "alphanum_fraction": 0.6479750779}
// dateTime format '29.08.2021 14:42:08'
export const formatDate = (dateTime) => {
  const [date, time] = dateTime.split(' ')
  const formattedTime = time.split(':')
  let [day, month, year] = date.split('.')
  month-- // js date 0 based, but we get 1 based dates

  return new Date(year, month, day, ...formattedTime)
}
