简体   繁体   中英

How to add SuperScript in date format in react native

I am trying to add SuperScript in my date format .

Like am getting value from server "9/5/2019" and "9th May,2019 I have to convert this into "9th May,2019" , the th should be SuperScript.

for exp

const Newdate = "9-May-2019"

const NewDateDormat ="9th May,2019"

both date I have to display both (Newdate and NewDateDormat) in "9th May,2019" this format .Here th should be "SuperScript".

当您将其插入DOM时,您可以将“th”放在“sup”标记之间。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM