ढाँचा:Weekday before date

स्वतन्त्र विश्वकोश, नेपाली विकिपिडियाबाट
Jump to navigation Jump to search

{{Weekday before date|Y|M|D|W}} returns the date of the first W (=Sunday, Monday, ..., Saturday) before the specified date with year Y, month M, and day of month D.

The first Sunday before अप्रिल २०, २०२१ is given by "{{Weekday before date|२०२१|अप्रिल|२०|Sunday}}" as "त्रुटी: गलत/वा हुदैनहुने समय".

Optionally you can format the output using the fifth parameter. For example the first Sunday before अप्रिल २०, २०२१ is given by "{{Weekday before date|२०२१|अप्रिल|२०|Sunday|d M y}}" as "त्रुटी: गलत/वा हुदैनहुने समय".

See also Template:Weekday after Julianday and Template:Weekday after date.