Skip to main content

Date Formatter SPCM

A simple Python package to format current dates easily.

Installation

You can install the package using pip:

pip install date_formatter_spcm

Usage

Import the functions from the date_formatter package:

from date_formatter import get_pretty_date, dd_mm_yyyy, mm_dd_yyyy, slash_dd_mm_yyyy, slash_mm_dd_yyyy

# Get the current date in 'Day, Month Date, Year' format
print(get_pretty_date())  # e.g., Monday, July 20, 2026

# Get the current date in 'DD-MM-YYYY' format
print(dd_mm_yyyy())       # e.g., 20-07-2026

# Get the current date in 'MM-DD-YYYY' format
print(mm_dd_yyyy())       # e.g., 07-20-2026

# Get the current date in 'DD/MM/YYYY' format
print(slash_dd_mm_yyyy()) # e.g., 20/07/2026

# Get the current date in 'MM/DD/YYYY' format
print(slash_mm_dd_yyyy()) # e.g., 07/20/2026

Features

  • get_pretty_date(): Returns the current date like "Monday, July 20, 2026".
  • dd_mm_yyyy(): Returns the current date in "DD-MM-YYYY" format.
  • mm_dd_yyyy(): Returns the current date in "MM-DD-YYYY" format.
  • slash_dd_mm_yyyy(): Returns the current date in "DD/MM/YYYY" format.
  • slash_mm_dd_yyyy(): Returns the current date in "MM/DD/YYYY" format.

How it works

This package is a lightweight wrapper built on top of Python's built-in datetime module to provide human-readable shortcuts for common date formats.

Author

Sara Czasak - sara.p.czasak.m@gmail.com

License

This project is licensed under the MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

date_formatter_spcm-0.0.2.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

date_formatter_spcm-0.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file date_formatter_spcm-0.0.2.tar.gz.

File metadata

  • Download URL: date_formatter_spcm-0.0.2.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for date_formatter_spcm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 88c3f838d00465f599c4eef6efa5675e48e44f8b41902832afd16b008504061e
MD5 36d0052a83bf0991c2eb6f0d673975ce
BLAKE2b-256 935534d47995c8a518a2be132ba0c15c221339947145f74855526b1fa874a6fa

See more details on using hashes here.

File details

Details for the file date_formatter_spcm-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for date_formatter_spcm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6bda5406ac1ef0d39143074b0ce59e927cdc0c8140271f4e181d1b89ee30189
MD5 61ca252d450b704233f970884575900f
BLAKE2b-256 1a0da28f11864d0858e1e1c65ebecc17f1751413e24b5968ea0e36ede69d30a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page