Props.date.toLocalString

Const month=props.date.toLocalString(‘default’,{month:‘long’});
This command gives an error that ->typeerror: props.date.toLocalString is not a function. Help me to solve this issue.