let find = ['%Y', '%y', '%MM', '%mm', '%M', '%m', '%D', '%d', '%WW', '%ww', '%w'];
Format Code | Meaning | Example Output |
---|---|---|
%Y |
Year with century | ۱۴۰۲ |
%y |
Year without century (zero-padded) | ۰۲ |
%MM |
Month name | آبان |
%mm |
Month name (short) | آبا |
%M |
Month number (zero-padded) | ۰۸ |
%m |
Month number | ۸ |
%D |
Day of the month(zero-padded) | ۰۱ |
%d |
Day of the month | ۱ |
%WW |
Day of the week | چهارشنبه |
%ww |
Day of the week (short) | چهار |
%w |
Day of the week (very short) | چ |