SaturnFramework / Saturn

Opinionated, web development framework for F# which implements the server-side, functional MVC pattern
https://saturnframework.org
MIT License
715 stars 109 forks source link

Have we a way to bind Datetime values from querystring or route? #302

Open lucasteles opened 3 years ago

lucasteles commented 3 years ago

I know that doesn't exists a format for datetime to use with getf

So, I can't find a way to bind datetime values from URL... could someone show me how I do it?

64J0 commented 3 years ago

Can you provide us more information about this? I think that an example would help a lot to understand.

lucasteles commented 2 years ago

@64J0 something like

getf "/api/%datetime" getApplication

I want to bind some datetime ISO string directly to a System.Datetime like asp.net does

I know that does not exist string format for DateTime, but I want to know if we have another way to do it.

For know the only way I see is parsing the raw string by hand