New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fecha-php

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fecha-php

Translate from php datetime format to fetcha format

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

fecha-php

Build Status

Simple tool to convert from php datetime format to fecha format (~960 Bytes minified + gzipped)

This is useful if you for example have a js datepicker in a laravel php application and you want to use the same format at both places.

Usage

npm fecha-php

npm i fecha-php
const convert = require("fecha-php");


const phpFormat = convert.fechaToPhp("YY-MM-DD HH:mm:ss")
// phpFormat = "y-m-d H:i:s"

const fechaFormat = convert.phpToFecha("y-m-d H:i:s")
// fechaFormat = "YY-MM-DD HH:mm:ss"

Keywords

fecha

FAQs

Package last updated on 16 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts