@snups/rjsf-utils
Version:
Utility functions for @snups/rjsf-core
7 lines (6 loc) • 317 B
TypeScript
/** Converts a local Date string into a UTC date string
*
* @param dateString - The string representation of a date as accepted by the `Date()` constructor
* @returns - A UTC date string if `dateString` is truthy, otherwise undefined
*/
export default function localToUTC(dateString: string): string | undefined;