Last day of the previous month in xx.xx.xxxx instead of xx/xx/xxxx

Hello all,

Currently im trying to get the first and last day of the previous month to fil in SAP webclient.
by using: now.Date.AddDays(-now.Day).ToShortDateString i get the last day of the previous month but it comes as 31/10/2018 but i need it to write down 31.10.2018.
is there a way to get it with (.) instead of (/)

you can replace / with . using string manipulation

yourString.replace("/",".")

do just add it behind now.Date.AddDays(-now.Day).ToShortDateString
so
now.Date.AddDays(-now.Day).ToShortDateStringyourString.replace("/",".")?

1 Like

yes give it a try

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.