Click here to Skip to main content
15,943,089 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to convert tagged text into html formatted text? Pin
Alex Dunlop18-Apr-22 19:25
Alex Dunlop18-Apr-22 19:25 
QuestionLoops, someone to help me Pin
FranciscaNunes200412-Apr-22 10:30
FranciscaNunes200412-Apr-22 10:30 
AnswerRe: Loops, someone to help me Pin
Richard MacCutchan12-Apr-22 21:16
mveRichard MacCutchan12-Apr-22 21:16 
AnswerRe: Loops, someone to help me Pin
Member 1562749529-May-22 21:29
Member 1562749529-May-22 21:29 
QuestionReact date formatting Pin
Simon_Whale7-Apr-22 3:25
Simon_Whale7-Apr-22 3:25 
AnswerRe: React date formatting Pin
Peter_in_27807-Apr-22 3:34
professionalPeter_in_27807-Apr-22 3:34 
AnswerRe: React date formatting Pin
Richard Deeming7-Apr-22 4:01
mveRichard Deeming7-Apr-22 4:01 
AnswerRe: React date formatting Pin
Jeremy Falcon26-Oct-22 12:01
professionalJeremy Falcon26-Oct-22 12:01 
JavaScript's native date object does that.
JavaScript
const date = new Date(Date.parse('2022-09-04T00:00:00'));
console.log(date.toLocaleString());

I would suggest putting a Z at the end of the ISO input date though, just to make it explicit that it's in UTC.
JavaScript
const date = new Date(Date.parse('2022-09-04T00:00:00Z'));
console.log(date.toLocaleString());

Otherwise, JavaScript will assume the input is in the local time zone.
Jeremy Falcon

Questionjava project Pin
Turki F773-Apr-22 15:30
Turki F773-Apr-22 15:30 
AnswerRe: java project Pin
Richard Deeming3-Apr-22 21:26
mveRichard Deeming3-Apr-22 21:26 
QuestionAsync call inside loop finishes later than loop itself Pin
Bohuslav Parenica2-Apr-22 0:51
Bohuslav Parenica2-Apr-22 0:51 
AnswerRe: Async call inside loop finishes later than loop itself Pin
Richard Deeming3-Apr-22 21:33
mveRichard Deeming3-Apr-22 21:33 
AnswerRe: Async call inside loop finishes later than loop itself Pin
Jeremy Falcon26-Oct-22 12:14
professionalJeremy Falcon26-Oct-22 12:14 
QuestionTransforming Excel to Html (javascript) Pin
Member 1554681528-Mar-22 0:09
Member 1554681528-Mar-22 0:09 
GeneralMessage Closed Pin
23-Mar-22 19:02
Richardrussel23-Mar-22 19:02 
QuestionMessage Closed Pin
23-Mar-22 19:00
Richardrussel23-Mar-22 19:00 
QuestionFormulario js Pin
Member 155607559-Mar-22 7:18
Member 155607559-Mar-22 7:18 
AnswerRe: Formulario js Pin
RedDk9-Mar-22 7:33
RedDk9-Mar-22 7:33 
QuestionCreating a responsive menu Pin
Member 1554804125-Feb-22 4:58
Member 1554804125-Feb-22 4:58 
AnswerMessage Closed Pin
25-Feb-22 5:40
Member 1554804125-Feb-22 5:40 
AnswerMessage Closed Pin
25-Feb-22 5:41
Member 1554804125-Feb-22 5:41 
AnswerRe: Creating a responsive menu Pin
Member 1554804125-Feb-22 5:44
Member 1554804125-Feb-22 5:44 
AnswerRe: Creating a responsive menu Pin
Richard Deeming27-Feb-22 21:12
mveRichard Deeming27-Feb-22 21:12 
QuestionAdding auto expand functionality to collapsible script Pin
Member 1554681524-Feb-22 3:38
Member 1554681524-Feb-22 3:38 
AnswerRe: Adding auto expand functionality to collapsible script Pin
Member 1554681524-Feb-22 9:52
Member 1554681524-Feb-22 9:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.