PHPackages                             urbanplum/dotnet-datetime - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. urbanplum/dotnet-datetime

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

urbanplum/dotnet-datetime
=========================

Tools to convert between .NET and PHP date formats

v1.0.0(10y ago)227.4k↓59.3%MITPHPPHP &gt;=5.3.0

Since Aug 31Pushed 9y ago2 watchersCompare

[ Source](https://github.com/urbanplum/php-dotnet-datetime)[ Packagist](https://packagist.org/packages/urbanplum/dotnet-datetime)[ Docs](https://github.com/urbanplum/dotnet-datetime)[ RSS](/packages/urbanplum-dotnet-datetime/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

dotnet-datetime
===============

[](#dotnet-datetime)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6c1074e379b79ceba197a7b55337a1fd7e74bd9e9e1f62dfb7b26389cf1f025b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f757262616e706c756d2f646f746e65742d6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/urbanplum/dotnet-datetime)[![Total Downloads](https://camo.githubusercontent.com/0c721dc8fe261777a8cba3c3551298ae0e14ca1890de1245dd1157fdd5cacf5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f757262616e706c756d2f646f746e65742d6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/urbanplum/dotnet-datetime)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Tools for conversion between .NET and PHP DateTime objects

Install
-------

[](#install)

Via Composer

```
$ composer require urbanplum/dotnet-datetime
```

Usage
-----

[](#usage)

```
$dotnetDateTime = new \Urbanplum\DotnetDateTime\DotnetDateTime();

echo $dotnetDateTime->formatToPhp('yyyy-MM-dd hh\:mm\:ss');

// Y-m-d h:i:s
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [John Smith](https://github.com/john-n-smith)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3949d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1314694?v=4)[John Smith](/maintainers/john-n-smith)[@john-n-smith](https://github.com/john-n-smith)

---

Top Contributors

[![john-n-smith](https://avatars.githubusercontent.com/u/1314694?v=4)](https://github.com/john-n-smith "john-n-smith (5 commits)")

---

Tags

phpdatetimeconverterformattimedateneturbanplumdotnet-datetime

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/urbanplum-dotnet-datetime/health.svg)

```
[![Health](https://phpackages.com/badges/urbanplum-dotnet-datetime/health.svg)](https://phpackages.com/packages/urbanplum-dotnet-datetime)
```

###  Alternatives

[kartik-v/php-date-formatter

A Javascript datetime formatting and manipulation library using PHP date-time formats.

461.6M3](/packages/kartik-v-php-date-formatter)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14283.6k](/packages/dater-dater)[zjkal/time-helper

一个简单快捷的PHP日期时间助手类库。 a smart PHP datetime helper library.

21030.2k2](/packages/zjkal-time-helper)[danielstjules/php-pretty-datetime

Generates human-readable strings for PHP DateTime objects

5797.0k](/packages/danielstjules-php-pretty-datetime)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
