Skip to Content
0
Oct 13, 2020 at 06:54 AM

sap.m.datepicker week number issue

534 Views

Hi,

Seems there is an issue/bug in sap.m.datepicker, where the weeks selected in "en" locale is populating the wrong week numbers. Any workaround for this issue.

Week 53 is populated as "1 2021"

week 1 is populated as "2 2021"

weeknumissue.png

<mvc:View controllerName="comk.datepicker.controller.datepick" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m">
	<Shell id="shell">
		<App id="app">
			<pages>
				<Page id="page" title="{i18n>title}">
					<content>
						<DatePicker
						displayFormat="w Y"
					
			id="DP1"
			placeholder="Enter Date ..."
			change="handleChange"
			class="sapUiSmallMarginBottom"/>
					</content>
				</Page>
			</pages>
		</App>
	</Shell>
</mvc:View>

Attachments

weeknumissue.png (31.4 kB)