Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed parsedate from formula functions and docs. fixes #2077 #2234

Merged
merged 1 commit into from
Feb 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -537,22 +537,6 @@ Hour=INT(DayFraction*24)
|NPER([FIELD1]/12, [FIELD2], [FIELD3], [FIELD4], 1) |59.673865|Periods for the investment with the above terms
|===

==== PARSEDATE

|===
|*description*|Parses a date using a SimpleDateFormat format string
|*syntax*|PARSEDATE( Text date; Text format; Text locale; Text timezone )
|*returns*|Date
|*semantics*|This computes the date based on the provided format, locale, and timezone. If timezone is provided, assumes the date is in UTC and converts the date from UTC to the specified timezone.
|*constraints*|format must be a valid SimpleDateFormat
|===

*Examples*
|===
|expression|result|comment
|PARSEDATE("2004/12/25 12:56:45.878";"yyyy/MM/dd HH:mm:ss.SSS") |2004-12-25 12:56:45.878|Simple parse.
|PARSEDATE("2004-12-25"; "yyyy-MM-dd"; "en"; "MDT" ) |2004-12-24 17:00:00.000|2004/12/25 00:00:00 UTC is 2004-12-24 17:00:00 MDT
|===

==== PREVWEEKDAY

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3123,20 +3123,6 @@ System 2 The week containing the first Thursday of the year is the first week
</function>

<!-- Date/Time : this list is complete -->
<function>
<category>%Category.DateTime</category>
<name>PARSEDATE</name>
<description>Parses a date using a SimpleDateFormat format string</description>
<syntax>PARSEDATE( Text date, Text format, Text locale, Text timezone )</syntax>
<returns>Date</returns>
<constraints>format must be a valid SimpleDateFormat</constraints>
<semantics>This computes the date based on the provided format, locale, and timezone. If timezone is provided, assumes the date is in UTC and converts the date from UTC to the specified timezone.</semantics>
<examples>
<example><expression>PARSEDATE("2004/12/25 12:56:45.878","yyyy/MM/dd HH:mm:ss.SSS")</expression> <result>2004-12-25 12:56:45.878</result> <level>2</level> <comment>Simple parse.</comment></example>
<example><expression>PARSEDATE("2004-12-25", "yyyy-MM-dd", "en", "MDT" )</expression> <result>2004-12-24 17:00:00.000</result> <level>2</level> <comment>2004/12/25 00:00:00 UTC is 2004-12-24 17:00:00 MDT</comment></example>
</examples>
</function>

<function>
<category>%Category.DateTime</category>
<name>DATETIMEVALUE</name>
Expand Down