https://github.com/r0mb0/list_out_dates_between_a_range_of_dates_classic_asp
Class to list out dates between a range of dates in Classic ASP
https://github.com/r0mb0/list_out_dates_between_a_range_of_dates_classic_asp
asp-classic class classic-asp classic-asp-lang classic-asp-language dates dates-and-times list-out list-out-dates lists r0mb0
Last synced: 8 months ago
JSON representation
Class to list out dates between a range of dates in Classic ASP
- Host: GitHub
- URL: https://github.com/r0mb0/list_out_dates_between_a_range_of_dates_classic_asp
- Owner: R0mb0
- License: mit
- Created: 2025-01-07T14:45:36.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-02-03T16:11:49.000Z (9 months ago)
- Last Synced: 2025-03-01T18:17:19.944Z (8 months ago)
- Topics: asp-classic, class, classic-asp, classic-asp-lang, classic-asp-language, dates, dates-and-times, list-out, list-out-dates, lists, r0mb0
- Language: Classic ASP
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Security: SECURITY.md
- Support: SUPPORT.md
Awesome Lists containing this project
README
# List out dates between a range of dates in Classic ASP
[](https://app.codacy.com/gh/R0mb0/List_out_dates_between_a_range_of_dates_classic_asp/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[](https://github.com/R0mb0/https://github.com/R0mb0/List_out_dates_between_a_range_of_dates_classic_asp)
[](https://github.com/R0mb0/List_out_dates_between_a_range_of_dates_classic_asp)
[](https://opensource.org/license/mit)[](http://paypal.me/R0mb0)
## `List_out_dates.class.asp`'s avaible function
- List out dates -> `Public Function extractDates(start_date, end_date, selector, separator, month_name, abbreviate)` - The function returns an array with all dates.
>
> - Where the selector could be:
> - "y" for Years
> - "m" for Months
> - "d" for Days
>
> - Where the separator could be:
> - An arbitrary symbol to separate date elements
>
> - Where the month_name coud be:
> - True for use MonthName function
> - False for don't use MonthName function
>
> - Where abbreviate could be:
> - True for abbreviate
> - False for don't abbreviate## How to use
> From `Test.asp`
1. Initialize the class
```
<%@LANGUAGE="VBSCRIPT"%>
<%
Dim dates
Set dates = New listOutDates
```2. Create a start date and a end date
```
Dim start_date
start_date = "07/02/2025 11:26:46"
Dim end_date
end_date = "02/04/2027 15:06:30"
```
3. List out all dates from range
```
Dim temp
For Each temp In dates.extractDates(start_date, end_date, "d", "/", True, False)
Response.write(temp & "
")
Next
%>
```