Is it possible to manipulate the components, such as year, month, daya datein VBA? I need a function that, given the day, month, and year, returns the corresponding date.
year
month
day
date
DateSerial(YEAR, MONTH, DAY)
will be what you are looking for.
DateSerial(2008, 8, 19) returns 8/19/2008
DateSerial(2008, 8, 19)
8/19/2008
There are several date functions in VBA - check this site
DateSerial (YEAR, MONTH, DAY)
Do you want DateSerial :
Dim someDate As Date = DateSerial(year, month, day)
Source: https://habr.com/ru/post/1697097/More articles:Help with vector merge algorithm - c ++Symbol of annuity or angle in LaTeX - mathHow to implement redirection for all requests (under certain conditions)? - redirectDoes anyone do test cases for pojos? - javaIs the YUI Loader disposable reliable? - javascriptDependency Injection and Circular Link - oopIn classic asp, can I save the database connection in a Session object? - sessionHow can I save a date, which can be partial (i.e. only a year, maybe a month), and display it later with the same specification? - datetimeHow can I segment a Palm OS 68K app? - codewarriorswitch to parallel coding - mathAll Articles