Twilio message generation of date

hello guys, I am not able to configure what code should i use to send date via ubuntu and twilio on mobile phone.Please help me!

To send date you need to import datetime package which is by default installed.
then use the following code
import datetime
t=d.strftime(’%x’) β€˜β€™#%x is the format of local version of can change it.’’
you can add t(which has date in the format :08/14/20) in the message.
response = sms.send_sms("The Current temperature sensor value is " +str(sensor_value)+β€˜date :’+t)
This changes in the code helps you send date with the meassage using twilio.
Hope this is useful.

1 Like

oh thanks got it :slight_smile: