These expressions may be used for the date: d - the day as a number without a leading zero (1-31) dd - the day as a number with a leading zero (01-31) ddd - the abbreviated day name (Mon - Sun) dddd - the long day name (Monday - Sunday) M - the month as a number without a leading zero (1-12) MM - the month as a number with a leading zero (01-12) MMM - the abbreviated month name (Jan - Dec) MMMM - the long month name (January - December) yy - the year as a two digit number (00-99) yyyy - the year as a four digit number (0000-9999) These expressions may be used for the time: h - the hour without a leading zero (0-23 or 1-12 if AM/ PM display) hh - the hour with a leading zero (00-23 or 01-12 if AM/ PM display) m - the minutes without a leading zero (0-59) mm - the minutes with a leading zero (00-59) s - the seconds without a leading zero (0-59) ss - the seconds with a leading zero (00-59) z - the milliseconds without leading zeroes (0-999) zzz - the milliseconds with leading zeroes (000-999) AP - switch to AM/ PM display. AP will be replaced by either "AM" or "PM". ap - switch to AM/ PM display. ap will be replaced by either "am" or "pm". Z - time zone in numeric form (-0500) All other input characters will be ignored.
Gellir defnyddio' r mynegiadau yma ar gyfer y dyddiad: d - y diwrnod fel rhif heb sero arweiniol (1- 31) dd - y diwrnod fel rhif efo sero arweiniol (01- 31) ddd - enw talfyredig y diwrnod (Llun - Sul) dddd - enw hir y diwrnod (Dydd Llun - Dydd Sul) M - y mis fel rhif heb sero arweiniol (1- 12) MM - y mis fel rhif efo sero arweiniol (01- 12) MMM - enw talfyredig y mis (Ion - Rhag) MMMM - enw hir y mis (Ionawr - Rhagfyr) yy - y flwyddyn fel rhif dau- ddigid (00- 99) yyyy - y flwyddyn fel rhif pedwar- digid (0000- 9999) Gellir defnyddio' r mynegiadau yma ar gyfer yr amser: < string > h - yr awr heb sero arweiniol (0- 23 neu 1- 12 os yn dangos YB/ YP) hh - yr awr efo sero arweiniol (0- 23 neu 1- 12 os yn dangos YB/ YP) m - y munudau heb sero arweiniol (0- 59) mm - y munudau efo sero arweiniol (00- 59) s - yr eiliadau heb sero arweiniol (0- 59) ss - yr eiliadau efo sero arweiniol (00- 59) z - y milieiliadau heb sero arweiniol (0- 999) zzz - y milieiliadau efo sero arweiniol (000- 999) AP - newid i ddangos YB/ YP. Amnewidir AP gan "AM" neu "PM". ap - newid i ddangos YB/ YP. Amnewidir ap gan "am" neu "pm". Z - amserfa mewn ffurf rhifol (- 0500) Anwybyddir pob nod arall o fewnbwn.