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

Support getting ISO week date, week of year #13527

Open
erwinkramer opened this issue Mar 4, 2024 · 0 comments
Open

Support getting ISO week date, week of year #13527

erwinkramer opened this issue Mar 4, 2024 · 0 comments
Labels
enhancement New feature or request Needs: Upvote This issue requires more votes to be considered new function

Comments

@erwinkramer
Copy link

erwinkramer commented Mar 4, 2024

There are some simple date functions available in Bicep: https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-date

With https://learn.microsoft.com/en-us/dotnet/api/system.globalization.isoweek?view=net-8.0, we can get the standardized week day formats in c#, without having to bother with localization.

Useful in

  • a sandbox environment where soft delete resources (like key vaults) are cleaned up automatically (but not purged), thus needing a resource name with reliable increment postfix which doesn't change too often, but have to be unique enough to not collide with existing soft deleted resources (thus weeknumbers are perfect, at least in my case)
  • tagging strategy
  • description fields
@erwinkramer erwinkramer added the enhancement New feature or request label Mar 4, 2024
@stephaniezyen stephaniezyen added new function Needs: Upvote This issue requires more votes to be considered and removed Needs: Triage 🔍 labels Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Needs: Upvote This issue requires more votes to be considered new function
Projects
Status: Todo
Development

No branches or pull requests

2 participants