Description :
Add Days to DataTime.
Function Group :
Add
Input :
<DateTime1> , <Integer>
Output :
<DataTime>
Example :
DP_AddDays(#2024-08-22 10:23:40#, 1) > #2024-08-23 10:23:40#
Notes :
Versions: Client function, Server function, Warped Function
Add Hours to DataTime.
DP_AddHours(#2024-08-22 10:23:40#, 1) > #2024-08-22 11:23:40#
Add Minutes to DateTime.
DP_AddMinutes(#2024-08-22 10:23:40#, 1) > #2024-08-22 10:24:40#
Add Months to DateTime.
DP_AddMonths(#2024-08-22 10:23:40#, 1) > #2024-09-22 10:23:40#
Add Quarters to DataTime.
DP_AddQuarters(#2024-08-22 10:23:40#, 1) > #2024-11-22 10:23:40#
Versions: Client function, Server function,
Add Seconds to DateTime
DP_AddSeconds(#2024-08-22 10:23:40#, 12) > #2024-10-22 10:23:52#
Add Semesters to DataTime
DP_AddSemester(#2024-08-22 10:23:40#, 1) > #2025-04-22 10:23:40#
Add Weeks to DateTime
<DataTime1> , <Integer>
DP_AddWeeks(#2024-08-22 10:23:40#, 1) > #2024-08-27 10:23:40#
DateTime after n works days.
Workdays > Monday to Friday.
Holidays not consider
<DateTime>
DP_AddWorkdays(#2024-08-22 10:23:40#, 1) > #2024-08-23 10:23:40#
DP_AddWorkdays(#2024-08-22 10:23:40#, 2) > #2024-08-26 10:23:40#
Add Years to DataTime
DP_AddYears(#2024-08-22 10:23:40#, 1) > #2025-08-22 10:23:40#
Concatenated Date and Time parts.
Build
<Date> , <Time>
DP_BuildDateTime(#2024-04-12#,#10:29:15#) > #2024-04-12 10:29:15#
Output Current Date.
<Date>
DP_CurrDate() > #2024-08-12#
Output Current DateTime.
DP_CurrDateTime() > #2024-08-12 10:23:20#
Output Current Time.
<Time>
DP_CurrTime() > #10:23:20#
Output the insert Date with time 23:59:59
<Date1>
DP_DateTimeCeiling(#2024-04-02#) > #2024-04-02 23:59:59#
Output the insert Date with time 00:00:00
DP_DateTimeFloor(#2024-04-02#) > #2024-04-02 00:00:00#
Output a Date with input of y, m, d
<Integers> , <3>
DP_NewDate(2024,02,27) > #2024-02-27 00:00:00#
Output a Date with input of y, m, d, h, m, s
<Integers> , <6>
DP_NewDateTime(2024,3,23,22,20,3) > #2024-03-23 22:20:03#
Output a time with input h,m,s
DP_NewTime(22,20,3) > #22:20:03#
Output the ordinary day of week [1-7] of 1st day of Year.
ISO Version. 1:Monday – 7:Sunday
Calculate
<Year (Int)>
<Integer>
DP_1JanWeekDay(2024) > 1
DP_1JanWeekDay() > 1
Output the date of First day of a Semester.
<Semester (Int)> , <Year>
DP_BeginOfSemester(2,2024) > #2024-07-01 00:00:00#
DP_BeginOfSemester(2) > #2024-07-01 00:00:00#
Year not mandatory (default: Present Year)
Output the date of First day of a Trimester.
<Trimester (Int)> , <Year>
DP_BeginOfTrimester(2,2024) > #2024.04.01 00:00:00#
DP_BeginOfTrimester(2) > #2024.04.01 00:00:00#
Output the ordinary day of week [1-7].
DP_DayOfWeek(#2024-03-30#) > 6
Output the ordinary day of year [1-366].
<DateTime1>
DP_DayOfYear(#2024-03-31#) > 91
Output the number of days to end of Year 365-0.
DP_DaysToYearEnd(#2024-03-31#) > 275
Calculate to easter sunday.
DP_EasterDay(2004) > #2024-03-31#
Output the last day of a month, if not input the year the action actual year
<Month (Int)> , <Year (Int)>
DP_EndOfMonth(3,2024) > #2024-03-31#
Output the date of Last day of a Semester.
DP_EndOfSemester(1,2024) > #2024-06-30#
Output the date of Last day of a Trimester.
DP_EndOfTrimester(1,2024) > #2024-03-31#
Output the largest date.
<Date1> , <Date2>
DP_MaxDate(#2024-04-02#,#2024-04-10#) > #2024-04-10#
Output the largest date of two DateTime.
<DateTime1> , <DateTime2>
DP_MaxDateTime(#2024-02-27 00:00:00#,#2024-04-28 00:23:00#) > #2024-04-28 00:23:00#
Output the smallest date.
DP_MaxDate(#2024-04-02#,#2024-04-10#) > #2024-04-02#
Output the smallest date of two DateTime.
DP_MinDateTime(#2024-02-27 00:00:00#,#2024-04-28 00:23:00#) > #2024-02-28 00:00:00#
Output the next workday DateTime. Holidays not consider.
DP_NextWorkDay(#2024-04-02 23:10:05#) > #2024-04-03 23:10:05#
Output the Date of a selected weekday
<Pos (int)> , <Weekday (int)>
DP_OrdWeekday(2,2,5,2024) > #2004-05-14#
DP_OrdWeekday(-1,2,5,2024) > #2004-05-28#
DP_OrdWeekday(0,2,5,2024) > #1900-01-01#
Pos = -1 for last week of month
Output the number of days between two DateTimes.
Diff
DP_DiffDays(#2024-02-27 00:00:00#,#2024-04-28 00:00:00#) > 38
Output the number of hours between two DateTimes.
DP_DiffHours(#2024-02-27 00:00:00#,#2024-04-28 00:00:00#) > 912
DP_DiffHours(#2024-02-27 00:00:00#,#2024-04-28 03:00:00#) > 915
Output the number of milliseconds between two unix date.
Difference between one value with actual unix time.
<LongInteger>
DP_DiffMilliSeconds(1729785716168) > 23000
Returns the difference of milliseconds between two date times with milliseconds.
Versions: Client function, ,
Output the number of minutes between two DateTimes.
DP_DiffMinutes(#2024-02-27 00:00:00#,#2024-02-28 00:00:00#) > 1140
Output the number of months between two DateTimes.
DP_DiffMonths(#2024-02-27 00:00:00#,#2024-03-28 00:00:00#) > 1
Output the number of quarter between two DateTimes.
DP_DiffQuarters(#2024-01-27 00:00:00#,#2024-04-28 00:00:00#) > 1
Output the number of seconds between two DateTimes.
DP_DiffSeconds(#2024-02-27 00:00:00#,#2024-02-28 00:00:00#) > 68400
Output the number of semesters between two DateTimes.
DP_DiffSemesters(#2024-01-27 00:00:00#,#2024-04-28 00:00:00#) > 0
Output the number of trimesters between two DateTimes.
<DataTime1> , <DateTime2>
DP_DiffTrimesters(#2024-01-27 00:00:00#,#2024-04-28 00:00:00#) > 1
Output the number of full weeks between two DateTimes.
DP_DiffWeeks(#2024-02-27 00:00:00#,#2024-03-28 00:00:00#) > 4
Output the number of workdays between two DateTimes.
DP_DiffWorkDays(#2024-02-27 00:00:00#,#2024-04-28 00:00:00#) > 32
Not considers holidays
Output the number of years between two DateTimes.
DP_DiffYears(#2024-02-27 00:00:00#,#2024-04-28 00:00:00#) > 0
Output the century of input DateTime.
Get
DP_GetDate(#2024-04-02 23:10:05#) > #2024-04-02#
Output the Date part of a DataTime.
DP_GetCentury(#2024-04-02 23:10:05#) > 22
Output the day part of DateTime.
DP_GetDay(#2024-04-02 23:10:05#) > 2
Output the hours part of DateTime.
DP_GetHour(#2024-04-02 23:10:05#) > 23
Output the minutes part of DateTime.
DP_GetMinute(#2024-04-02 23:10:05#) > 10
Output the month part of DateTime.
DP_GetMonth(#2024-04-02 23:10:05#) > 4
Output the quarter of a DateTime.
DP_GetQuarter(#2024-04-02 23:10:05#) > 2
Output the seconds part of DateTime.
DP_GetSecond(#2024-04-02 23:10:05#) > 5
Output the semester of a DateTime
DP_GetSemester(#2024-04-02 23:10:05#) > 1
Output the Time part of a DataTime.
DP_GetTime(#2024-04-02 23:10:05#) > #23:10:05#
Output the trimester of a DateTime.
DP_GetTrimester(#2024-04-02 23:10:05#) > 2
Output current date time (UTC) with UNIX milliseconds
Since Jan 1, 1970 00:00:00 UTC
DP_GetUnixMilliSeconds() > 1729785716168
JavaScript Returns current date time with milliseconds with milliseconds on UTC
Output current date time (UTC) with UNIX seconds
DP_GetUnixSeconds() > 1729785716
JavaScript Returns current date time with seconds with seconds on UTC
Output the ISO Week Number [1-53].
DP_GetWeek(#2024-04-02 23:10:05#) > 14
Output the year part of DateTime
DP_GetYear(#2024-04-02 23:10:05#) > 2024
Check if Date format
Logical
<Date (Text)>
<Logic>
DP_IsDate("2024-04-02") > True
Check if DateTime format
<DateTime (Text)>
DP_IsDateTime("2024-04-02 22:12:00") > True
Checks if the year is a Leap Year
DP_IsLeapYear(2024) > True
Check if Time format
<Time (Text)>
DP_IsTime("22:12:00") > True
Checks if the day is a workday
DP_IsWorkDay(#2024-02-27 00:00:00#) > True