Goodbye people, I have dates in TD elements of a table that I want to modify, the time of those TDs is 11 hours +, and I have to transform them to local time and I also want to add the name of the DAY.
As these TDs have a fixed width, the time is lower and so I want it to be because the height of the row allows it well, that is, it looks like this:
10/18/20
8:30 PM
The HTML of the TDs is like this:
<td class="texto-cen">18/10/20 20:30</td>
And there should be something like this:
<td class="texto-cen">20 Oct 18 Sab 09:30</td>
And it should look like this:
20 Oct 18
Sat 09:30
You could also create another element within this TD to only set the DAY and TIME if there is not a date format that is exactly: 20 Oct 18 Sat 09:30. For example:
<td class="texto-cen">20 Oct 18 <div>Sab 09:30</div></td>
Well then I should give one format or another to each cell depending on the DAY NAME, but this I think I can solve it but I'll comment on it if someone has a code already done.
Well as you know, there are many Javascript functions to do it but I am confused to say it in some way and I can not find the way.
Greetings and Thanks for your help!