PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Versions 16 and later
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
New in version 16
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Universal Windows 10 App Most of these functions are now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
iPhone/iPad Most of these functions are now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App Most of these functions are now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App Most of these functions are now available in Windows Store apps mode.
Universal Windows 10 App Most of these functions are now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
Universal Windows 10 App Most of these functions are now available in Universal Windows 10 App mode.
The following functions are used to manage the dates and times:
AgeReturns the age according to the date of birth.
BankHolidayIndicates whether a day is a bank holiday or not.
BankHolidayAddIndicates that a day (or a list of days) is a bank holiday.
BankHolidayDeleteAllClears the list of all bank holidays.
BankHolidayListReturns the list of bank holidays defined by BankHolidayAdd.
ChronoEndStops a stopwatch and returns the time passed (in milliseconds) since the start of timing (call to ChronoStart).
ChronoPausePauses a stopwatch in order to measure the time spent on a process.
ChronoResetStops and resets an existing stopwatch to zero.
ChronoResumeRestarts a stopwatch that was stopped by ChronoEnd or ChronoPause.
ChronoStartStarts a stopwatch to find out the duration of a process (in milliseconds) and resets an existing stopwatch.
ChronoValueIndicates the time passed (in milliseconds) since the call to ChronoStart.
CurrentMonthReturns the current month.
CurrentYearReturns the current year in integer format.
DateDifferenceCalculates the number of days between two dates.
DatePickerDisplays the system date picker.
DateSysReturns or modifies the system date (date of the day defined on the current computer).
DateTimeByDefaultUsed to define the default value of Date, Time and DateTime variables.
DateTimeDifferenceCalculates the difference between two dates and times.
DateTimeLocalToTimeZoneConverts a local date and time into the date and time of a time zone.
DateTimeLocalToUTCConverts a date and a time expressed in local time (time zone, summer time, winter time) into a date and time expressed in universal time (UTC).
DateTimeTimeZoneToLocalConverts a date and a time expressed in a time zone into local date and time.
Versions 23 and later
DateTimeToEpoch
New in version 23
DateTimeToEpoch
DateTimeToEpoch
Converts a local date-time to the Epoch format (number of time units from 01/01/1970 at 00h00 UTC).
DateTimeToRealConverts a date and time into an 8-byte real.
DateTimeUTCToLocalConverts a date and a time expressed in universal time (UTC) into a date and time expressed in local time (time zone, summer time, winter time).
DateTimeValidChecks the validity of a date/time included between January 01 0001 at 0 hour 0 minute 0 second 0 hundredth of a second and December 31 9999 at 23 hours 59 minutes 59 seconds 99 hundredths of a second.
DateToDayReturns the day corresponding to a given date.
DateToDayInAlphaReturns the spelled-out day of the week corresponding to the specified date.
DateToIntegerTransforms a date into an integer.
DateToMonthInAlphaSpells out the month corresponding to the specified date.
DateToStringFormats:
  • the specified date to the specified format.
  • the specified date time to the specified format.
DateToWeekNumberReturns the number of the week corresponding to the specified date.
DateValidChecks the validity of a date found between January 01 0001 and December 31 9999.
DayNumberInAlphaReturns the name of the day of the week according to its number.
DurationToStringFormats the specified duration into the specified format.
EasterReturns the date of Easter for the specified year according to the western Christian calendar.
Versions 23 and later
EpochToDateTime
New in version 23
EpochToDateTime
EpochToDateTime
Converts a date and a time in Epoch format (number of time units since 01/01/1970 at 00h00 UTC) into a local date-time.
FirstDayOfMonthReturns the first day of the month.
FirstDayOfWeekReturns the date of the first day of the week (which means Monday).
FirstDayOfYearReturns the date of the first day of the year.
IntegerToDateTransforms an integer into a date in YYYYMMDD format.
IntegerToDayReturns the day of the week corresponding to the specified date (this date is an integer).
IntegerToDayInAlphaSpells out the day of the week corresponding to the specified date (this date is an integer).
IntegerToMonthInAlphaReturns and spells out the month corresponding to the specified date (this date is an integer).
IntegerToTimeTransforms an integer into a time in HHMMSSCC format.
IntegerToWeekNumberReturns the week number in the year corresponding to the specified date (this date is an integer).
LastDayOfMonthReturns the date of the last day for the specified month.
LastDayOfWeekReturns the date of the last day of the week corresponding to a given date.
MonthNumberInAlphaReturns the name of the month according to its number.
NowReturns or modifies the system time (current time defined for the current computer).
RealToDateTimeCoverts a 8-byte real into a date and time.
StringToDateTransforms a date in character string format into a date in YYYYMMDD format.
StringToDurationTransforms a duration in character string format into a duration that can be used by a Duration variable.
StringToTimeTransforms a time in character string format into a time in HHMMSSCC format, that can be used by a Time variable].
SysDateTimeReturns or modifies the system date (date and time of the day defined for the current computer).
TimeDifferenceCalculates the difference between two times in hundredths of a second.
TimePickerDisplays the time picker of system.
TimeSysReturns or modifies the system time (current time defined for the current computer).
TimeToIntegerTransforms a time into an integer.
TimeToStringFormats the time passed in a parameter according to the specified format.
TimeValidChecks the validity of a time.
TodayReturns or modifies the system date (date of the day defined on the current computer).
WeekNumberReturns the week number in the year corresponding to the specified date (this date is a character string).
WeekToDateReturns the date of the Monday for the specified week and year.
Related Examples:
Management of dates Unit examples (WEBDEV): Management of dates
[ + ] This example presents the use of the Date type of WLanguage and the use of the functions for handling the dates.
Calculating the date of Easter and an age Unit examples (WINDEV): Calculating the date of Easter and an age
[ + ] Calculating the date of Easter for a given year and calculating the age of a person at a given date.
The Chrono functions Unit examples (WINDEV): The Chrono functions
[ + ] Using the ChronoXXX functions.
These functions are used to calculate the time passed between the start (ChronoStart) and the end (ChronoEnd).
Management of dates Unit examples (WINDEV): Management of dates
[ + ] Using the Date type of WLanguage and the functions for handling dates.
Calculations on durations Unit examples (WINDEV): Calculations on durations
[ + ] Calculations on dates and times with the WLanguage functions:
- Calculate the duration between two moments (dates and times)
- Calculate a sum of durations
- Calculate an average of durations
WD Evaluation period Training (WINDEV): WD Evaluation period
[ + ] This example explains how to limit the use of an application to a given period (evaluation period).
The following topics are presented in this example:
1/ the protection of an application for a given duration
2/ the management of the registry

Summary of the example supplied with WINDEV:
When this example is started for the first time, it is activated for an evaluation period set to 5 days.
The information regarding the date when it was first started is stored in the registry and a control key is used to check whether this date was not modified by the end user. At the end of the evaluation period, the application is locked, unless the end user provides the code for unlocking the application
The Chrono functions Unit examples (WINDEV Mobile): The Chrono functions
[ + ] Using the WLanguage "Chrono" functions.
These functions are used to calculate the time passed between the start (ChronoStart) and the end (ChronoEnd).
UWA Stopwatch Universal Apps (WINDEV Mobile): UWA Stopwatch
[ + ] This example explains how to create a stopwatch for a mobile device with WINDEV Mobile.
In this example, a timer is used to display the hands of the stopwatch and to display the time passed on a regular basis.
Minimum required version
  • Version 9
This page is also available for…
Comments
Data - Separar Dia Mes E Ano
Aula 1091 - WinDev Data - Separar Dia Mes E Ano

//Nessa aula vou ensinar como pegar uma Data e Separar Dia Mes e Ano
//In this class I will teach How to get a date And Separate Day Month and Year

d_separa_dia_mes_ano is Date=EDT_Data
//criando uma variavel data
//Creating a variable date

EDT_resultado=""
EDT_resultado=d_separa_dia_mes_ano..Day
//Vou pegar apenas o dia
//I'll just catch the day.

EDT_resultado+=CR+d_separa_dia_mes_ano..Month
//na proxima linha(cr) vou colocar mes
//On the next line (cr) I'll set the month

EDT_resultado+=CR+d_separa_dia_mes_ano..Year
//na proxima linha(cr) vou colocar ano
//On the next line (cr) I'll put the year

//Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2017/03/aula-1091-windev-data-separar-dia-mes-e.html

https://www.youtube.com/watch?v=87WmAZKc1LQ

De matos
Mar. 14 2017
Exemplo Data - Texto Para Date
//2016-02-08
//1234567890
_data is Date=""
_data..Day=SAI_data_texto[[9 TO 10]]
_data..Month=SAI_data_texto[[6 TO 7]]
_data..Year=SAI_data_texto[[1 TO 4]]
SAI_data=_data

//em frances
d_data_f est une Date=""
d_data_f..Jour=SAI_data_texto[[9 A 10]]
d_data_f..Mois=SAI_data_texto[[6 A 7]]
d_data_f..Année=SAI_data_texto[[1 A 4]]
SAI_data=d_data_f

//Blog com video e exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-datas-003-transformar-data.html
De matos AMARILDO
Feb. 11 2016
Exemplo Data - Date Para Texto
d_data_hoje is Date=DateSys()
t_hora_hoje is Time=TimeSys()
s_dhEvento is string=NumToString(d_data_hoje..Year,"04d")+"-"
s_dhEvento+=NumToString(d_data_hoje..Month,"02d")+"-"
s_dhEvento+=NumToString(d_data_hoje..Day,"02d")+"T"
s_dhEvento+=NumToString(t_hora_hoje..Hour,"02d")+":"
s_dhEvento+=NumToString(t_hora_hoje..Minute,"02d")+":"
s_dhEvento+=NumToString(t_hora_hoje..Second,"02d")+"-"
IF empresa_parametro.horario_verao=True THEN
s_dhEvento+="02:00"
ELSE
s_dhEvento+="03:00"
END
// 2016-02-09T20:22:27-02:00
//Blog Com Video Exemplo
http://windevdesenvolvimento.blogspot.com.br/2016/02/curso-windev-datas-004-transformar-data.html
De matos AMARILDO
Feb. 11 2016