Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

This script is a JavaScript port of PHP's date function (http://php.net/date) with one difference.

The main difference to PHP is the syntax used in the format parameter.
In PHP all modifiers are put directly, eg. Y-m-d.
My function requires all modifiers to be prefixed with a % character, eg. %Y-%m-%d.

Supported are:
a, A, B, c, d, D, F, g, G, h, H, i, I, j, l, L, m, M, n, N, o, O, P, r, s, S, t, u, U, w, W, y, Y, z, Z

Not supported:
e, T

The script is released under the terms of MIT license.

About

JavaScript function for converting timestamps or Date objects to formatted strings

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages