Skip to main content

to_dayjs

Function to_dayjs 

Source
pub fn to_dayjs(pattern: &str) -> Result<String>
Expand description

Translate a PHP pattern to Day.js tokens: Y y m n d j H G h g i s a A D l M F w v O P U, escaped literals and any non-letter. U needs Day.js’s advancedFormat plugin.

§Errors

Rejects tokens Day.js cannot express instead of generating an incompatible format.