source/text/sbasic/shared/03030130.xhp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
New commits: commit e48c06ba931d5da0371c2e9b64158aebfbbd9f49 Author: Pierre F <f...@bger.ch> AuthorDate: Wed Mar 13 14:56:24 2024 +0100 Commit: Olivier Hallot <olivier.hal...@libreoffice.org> CommitDate: Thu Mar 14 20:45:01 2024 +0100 tdf#146902. add DatePart results Change-Id: I718c788a596a11f40dbdaf60860daa8951ae709d Reviewed-on: https://gerrit.libreoffice.org/c/help/+/164746 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org> diff --git a/source/text/sbasic/shared/03030130.xhp b/source/text/sbasic/shared/03030130.xhp index 2ab5e915a0..184b042082 100644 --- a/source/text/sbasic/shared/03030130.xhp +++ b/source/text/sbasic/shared/03030130.xhp @@ -54,8 +54,9 @@ <embed href="text/sbasic/shared/00000003.xhp#functexample"/><bascode> <paragraph id="par_idm1341577504" role="bascode" localize="false">Sub example_datepart</paragraph> -<paragraph id="par_idm1341576272" role="bascode" localize="false"> MsgBox DatePart("ww", #12/31/2005#)</paragraph> -<paragraph id="par_idm1347516272" role="bascode" localize="false"> MsgBox DatePart(date:=#1999-12-30#, interval:="q")</paragraph> +<paragraph id="par_idm1341576002" role="bascode" localize="false"> MsgBox DatePart("ww", #01/02/2005#) ' displays 2 because weeks start on Sunday</paragraph> +<paragraph id="par_idm1341576272" role="bascode" localize="false"> MsgBox DatePart("ww", #12/31/2005#) ' displays 53</paragraph> +<paragraph id="par_idm1347516272" role="bascode" localize="false"> MsgBox DatePart(date:=#2005-12-30#, interval:="q") ' displays 4</paragraph> <paragraph id="par_idm1341575024" role="bascode" localize="false">End Sub</paragraph> </bascode>