Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Is anybody know the date function to get the date is Friday or Saturday or Sunday?
I could not find in Manual.
Thanks for your reply,
Qvsu
If(weekday(Date)>3, 'Friday, Saturday or Sunday')
Hello,
If you want to know the day of week, you have the WeekDay(Date) function.
Martin
If(weekday(Date)>3, 'Friday, Saturday or Sunday')
Thanks Michael and Martin.
Hi,
Again. I tried to check Weekday('2010-05-14') returns "Fri" instead of number.
Is it because of the my OS date setting or anywhere that I should check?
Hi, it shows 'Fri', but internally is a number, you can check this with num(weekday(datefield))
Rgds
You have an environment variable which format your data.
It is this line :
SET DayNames='lun.;mar.;mer.;jeu.;ven.;sam.;dim.';
If you prefer to see the numbers, you can convert to num like that :
num(WeekDay(Date))
Martin
Correct, it is dual, text AND number at the same time.
(Same about months.)