Is it possible to utilize the toLocaleString()
method in NativeScript? Take a look at this example on {N} Playground
<script>
export default {
data() {
return {
trDate: new Date(1579180347000).toLocaleString("tr"),
// This should display as 16.01.2020 16:12:27
};
}
};
</script>
The Browser compatibility documentation explains:
So, does this mean it's advisable to use an alternative package like date-and-time for handling date data formatting?