Snið hingað til að dd.mm.yyyy en að skrifa

Kóða dæmi

0
0

Snið Dagleg.Nú að yyyy-mm-dd c#

    var dateString1 = DateTime.Now.ToString("yyyyMMdd");
    var dateString2 = DateTime.Now.ToString("yyyy-MM-dd");

    Console.WriteLine("yyyyMMdd " + dateString1);
    Console.WriteLine("yyyy-MM-dd "+ dateString2);
0
0

Umbreyta stefnumót að yyyy mm dd snið

const formatYmd = date => date.toISOString().slice(0, 10);
formatYmd(new Date());  

Í önnur tungumál

Þetta page er í boði í önnur tungumál

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................